Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DoctrineBridge] Deprecation impossible to fix #58756

Closed as not planned
Closed as not planned
@lyrixx

Description

@lyrixx

Hello,

My code trigger deprecations, and it seems they are impossible to fix, because my vendors don't include these attributs

1x: Since symfony/doctrine-bridge 6.3: Registering "Orpi\Cache\InvalidateCacheEventSubscriber" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.

extract from my composer.json

doctrine/common                          3.4.5   
doctrine/dbal                            3.9.3   
doctrine/deprecations                    1.1.3   
doctrine/doctrine-bundle                 2.13.0  
doctrine/doctrine-migrations-bundle      3.3.1
doctrine/event-manager                   2.0.1
doctrine/orm                             2.20.0  
symfony/doctrine-bridge                  6.4.13  

ref:

trigger_deprecation('symfony/doctrine-bridge', '6.3', 'Registering "%s" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.', \is_object($listener) ? get_debug_type($listener) : $listener);

Looks related to #47864 /cc @derrabus

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions