8000 Renamed the attribute to AsDoctrineListener · symfony/symfony-docs@dd90e0a · GitHub
[go: up one dir, main page]

Skip to content

Commit dd90e0a

Browse files
committed
Renamed the attribute to AsDoctrineListener
1 parent c51f145 commit dd90e0a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doctrine/events.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ listener in the Symfony application by creating a new service for it and
169169
// src/App/EventListener/SearchIndexer.php
170170
namespace App\EventListener;
171171
172-
use Doctrine\Bundle\DoctrineBundle\Attribute\AsEventListener;
172+
use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener;
173173
use Doctrine\ORM\Event\LifecycleEventArgs;
174174
175-
#[AsEventListener('postPersist'/*, 500, 'default'*/)]
175+
#[AsDoctrineListener('postPersist'/*, 500, 'default'*/)]
176176
class SearchIndexer
177177
{
178178
public function postPersist(LifecycleEventArgs $event): void
@@ -251,10 +251,9 @@ listener in the Symfony application by creating a new service for it and
251251
;
252252
};
253253
254-
255254
.. versionadded:: 2.7.2
256255

257-
The :class:`Doctrine\\Bundle\\DoctrineBundle\\Attribute\\AsEventListener`
256+
The :class:`Doctrine\\Bundle\\DoctrineBundle\\Attribute\\AsDoctrineListener`
258257
attribute was introduced in DoctrineBundle 2.7.2.
259258

260259
.. tip::

0 commit comments

Comments
 (0)
0