File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -331,10 +331,8 @@ is notified each time those events are dispatched.
331
331
332
332
Another way to listen to events is via an *event subscriber *. An event
333
333
subscriber is a PHP class that's able to tell the dispatcher exactly which
334
- events it should subscribe to. It implements the
335
- :class: `Symfony\\ Component\\ EventDispatcher\\ EventSubscriberInterface `
336
- interface, which requires a single static method called
337
- :method: `Symfony\\ Component\\ EventDispatcher\\ EventSubscriberInterface::getSubscribedEvents `.
334
+ events it should subscribe to. It implements the :class: `Symfony\\ Component\\ EventDispatcher\\ EventSubscriberInterface `
335
+ interface, which requires a single static method called :method: `Symfony\\ Component\\ EventDispatcher\\ EventSubscriberInterface::getSubscribedEvents `.
338
336
Take the following example of a subscriber that subscribes to the
339
337
``kernel.response `` and ``order.placed `` events::
340
338
You can’t perform that action at this time.
0 commit comments