-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DoctrineBundle] feat: doctrine schema subscribers as listeners #1635
[DoctrineBundle] feat: doctrine schema subscribers as listeners #1635
Conversation
b27ef61
to
e7e4a48
Compare
It seems the dependencies installed for psalm check are Symfony 5.4. It could explained why the class psalm.xml.dist updated in order to suppress error |
e7e4a48
to
8a6c21f
Compare
4409509
to
15c5c1c
Compare
updated |
@@ -394,18 +397,28 @@ protected function ormLoad(array $config, ContainerBuilder $container) | |||
$container->removeAlias('doctrine.orm.metadata.annotation_reader'); | |||
} | |||
|
|||
// available in Symfony 6.3 | |||
class_exists(DoctrineDbalCacheAdapterSchemaListener::class) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$container->removeDefinition('doctrine.orm.listeners.doctrine_dbal_cache_adapter_schema_' . (class_exists(DoctrineDbalCacheAdapterSchemaListener::class) ? 'listener' : 'subscriber));
and let's do this also for pre-existing lines below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok ! if I'm not mistaken, there is just the case for the 3 new listeners. I'll double check
15c5c1c
to
db7a166
Compare
db7a166
to
c435315
Compare
linked to PR symfony/symfony#49610
Doctrine schema listeners are deprecated and changed as listeners