Skip to content

Commit

Permalink
[DoctrineBundle] deprecate EventSubscriberInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
alli83 committed May 26, 2023
1 parent 2170e49 commit 9c11976
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EventSubscriber/EventSubscriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

namespace Doctrine\Bundle\DoctrineBundle\EventSubscriber;

use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener;
use Doctrine\Common\EventSubscriber;

/**
* @deprecated use the {@see AsDoctrineListener} attribute instead
*/
interface EventSubscriberInterface extends EventSubscriber
{
}
6 changes: 6 additions & 0 deletions UPGRADE-2.10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
UPGRADE FROM 2.9 to 2.10
========================

### Deprecations

- `Doctrine\Bundle\DoctrineBundle\EventSubscriber\EventSubscriberInterface` has been deprecated. Use the `#[AsDoctrineListener]` attribute instead.

0 comments on commit 9c11976

Please sign in to comment.