File tree 1 file changed +3
-4
lines changed
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
169
169
// src/App/EventListener/SearchIndexer.php
170
170
namespace App\EventListener;
171
171
172
- use Doctrine\Bundle\DoctrineBundle\Attribute\AsEventListener ;
172
+ use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener ;
173
173
use Doctrine\ORM\Event\LifecycleEventArgs;
174
174
175
- #[AsEventListener ('postPersist'/*, 500, 'default'*/)]
175
+ #[AsDoctrineListener ('postPersist'/*, 500, 'default'*/)]
176
176
class SearchIndexer
177
177
{
178
178
public function postPersist(LifecycleEventArgs $event): void
@@ -251,10 +251,9 @@ listener in the Symfony application by creating a new service for it and
251
251
;
252
252
};
253
253
254
-
255
254
.. versionadded :: 2.7.2
256
255
257
- The :class: `Doctrine\\ Bundle\\ DoctrineBundle\\ Attribute\\ AsEventListener `
256
+ The :class: `Doctrine\\ Bundle\\ DoctrineBundle\\ Attribute\\ AsDoctrineListener `
258
257
attribute was introduced in DoctrineBundle 2.7.2.
259
258
260
259
.. tip ::
You can’t perform that action at this time.
0 commit comments