8000 Added a note about the priority meaning in event subscribers · beni0888/symfony-docs@f8b769c · GitHub
[go: up one dir, main page]

Skip to content

Commit f8b769c

Browse files
committed
Added a note about the priority meaning in event subscribers
1 parent 00b16ae commit f8b769c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cookbook/service_container/event_listener.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ Creating an Event Subscriber
109109

110110
Another way to listen to events is via an event subscriber. An event subscriber
111111
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::
115116

116117
// src/AppBundle/EventListener/ExceptionSubscriber.php
117118
namespace AppBundle\EventSubscriber;

0 commit comments

Comments
 (0)
0