From 511e354c1b3bc0b17ecce641f8c2c9fdd89c6df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 19 Dec 2023 20:30:40 +0100 Subject: [PATCH] Remove EventSubscriberInterface --- DependencyInjection/DoctrineMongoDBExtension.php | 4 ---- EventSubscriber/EventSubscriberInterface.php | 11 ----------- UPGRADE-5.0.md | 2 ++ psalm.xml | 1 - 4 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 EventSubscriber/EventSubscriberInterface.php diff --git a/DependencyInjection/DoctrineMongoDBExtension.php b/DependencyInjection/DoctrineMongoDBExtension.php index 0ef62034..aac562f5 100644 --- a/DependencyInjection/DoctrineMongoDBExtension.php +++ b/DependencyInjection/DoctrineMongoDBExtension.php @@ -10,7 +10,6 @@ use Doctrine\Bundle\MongoDBBundle\Command\LoadDataFixturesDoctrineODMCommand; use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\FixturesCompilerPass; use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass; -use Doctrine\Bundle\MongoDBBundle\EventSubscriber\EventSubscriberInterface; use Doctrine\Bundle\MongoDBBundle\Fixture\ODMFixtureInterface; use Doctrine\Bundle\MongoDBBundle\Mapping\Driver\XmlDriver; use Doctrine\Bundle\MongoDBBundle\Repository\ServiceDocumentRepositoryInterface; @@ -136,9 +135,6 @@ public function load(array $configs, ContainerBuilder $container): void $container->registerForAutoconfiguration(ServiceDocumentRepositoryInterface::class) ->addTag(ServiceRepositoryCompilerPass::REPOSITORY_SERVICE_TAG); - $container->registerForAutoconfiguration(EventSubscriberInterface::class) - ->addTag('doctrine_mongodb.odm.event_subscriber'); - $container->registerAttributeForAutoconfiguration(AsDocumentListener::class, static function (ChildDefinition $definition, AsDocumentListener $attribute): void { $definition->addTag('doctrine_mongodb.odm.event_listener', [ 'event' => $attribute->event, diff --git a/EventSubscriber/EventSubscriberInterface.php b/EventSubscriber/EventSubscriberInterface.php deleted file mode 100644 index 7002ae96..00000000 --- a/EventSubscriber/EventSubscriberInterface.php +++ /dev/null @@ -1,11 +0,0 @@ - -