Skip to content

Commit

Permalink
Deprecate EventSubscriberInterface in favor of #[AsDocumentListener]
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 19, 2023
1 parent c53d147 commit 8303f67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions EventSubscriber/EventSubscriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Doctrine\Common\EventSubscriber;

/** @deprecated use the {@see \Doctrine\Bundle\MongoDBBundle\Attribute\AsDocumentListener} attribute instead */
interface EventSubscriberInterface extends EventSubscriber
{
}
2 changes: 2 additions & 0 deletions UPGRADE-4.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 8303f67

Please sign in to comment.