File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
cookbook/service_container Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,10 @@ Creating an Event Subscriber
109
109
110
110
Another way to listen to events is via an event subscriber. An event subscriber
111
111
can define one or various methods that listen to one or various events,
112
- and can set a priority for each method. To learn more about event subscribers,
113
- see `The EventDispatcher component `_. The following example shows a subscriber
114
- that subscribes various methods to the ``kernel.exception `` event::
112
+ and can set a priority for each method. The higher the priority, the earlier
113
+ the method is called. To learn more about event subscribers, see `The EventDispatcher component `_.
114
+ The following example shows a subscriber that subscribes various methods
115
+ to the ``kernel.exception `` event::
115
116
116
117
// src/AppBundle/EventListener/ExceptionSubscriber.php
117
118
namespace AppBundle\EventSubscriber;
You can’t perform that action at this time.
0 commit comments