Question from the Symfony 6 test

Events listeners are easier to reuse because the knowledge of the events is kept in the class rather than in the service definition.

Medium

Events listeners are easier to reuse because the knowledge of the events is kept in the class rather than in the service definition.

Author: smaine milianniStatus: PublishedQuestion passed 1349 times
Edit
4
Community Evaluations
developer avatar
Lucas Bertrand
14/03/2024
+1
developer avatar
Auteur anonyme
15/03/2024
C'est à dire ?
developer avatar
Lucas Bertrand
15/03/2024
Par rapport à la question du dessous :)
developer avatar
Théo
17/01/2024
Cela est toujours vrai avec l'approche attribut ? Comme : #[AsEventListener(event: KernelEvents::REQUEST, method: 'onKernelRequest')]
developer avatar
Auteur anonyme
25/01/2024
+1