From 8303f67add61e1c1bf92341ceab48b5533cc78d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 19 Dec 2023 19:59:36 +0100 Subject: [PATCH] Deprecate EventSubscriberInterface in favor of #[AsDocumentListener] --- EventSubscriber/EventSubscriberInterface.php | 1 + UPGRADE-4.7.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/EventSubscriber/EventSubscriberInterface.php b/EventSubscriber/EventSubscriberInterface.php index 7002ae96..ec4e4025 100644 --- a/EventSubscriber/EventSubscriberInterface.php +++ b/EventSubscriber/EventSubscriberInterface.php @@ -6,6 +6,7 @@ use Doctrine\Common\EventSubscriber; +/** @deprecated use the {@see \Doctrine\Bundle\MongoDBBundle\Attribute\AsDocumentListener} attribute instead */ interface EventSubscriberInterface extends EventSubscriber { } diff --git a/UPGRADE-4.7.md b/UPGRADE-4.7.md index b61cef99..2e1950c4 100644 --- a/UPGRADE-4.7.md +++ b/UPGRADE-4.7.md @@ -11,3 +11,5 @@ UPGRADE FROM 4.6 to 4.7 * The `doctrine_mongodb.odm.fixture_loader` parameter has been removed. * Implementing `ContainerAwareInterface` on fixtures classes is deprecated, use dependency injection instead. +* `Doctrine\Bundle\MongoDBBundle\EventSubscriber\EventSubscriberInterface` has + been deprecated. Use the `#[AsDocumentListener]` attribute instead.