File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 ::
You can’t perform that action at this time.
0 commit comments