@@ -148,7 +148,7 @@ The ``addListener()`` method takes up to three arguments:
148148#. The event name (string) that this listener wants to listen to;
149149#. A PHP callable that will be executed when the specified event is dispatched;
150150#. An optional priority, defined as a positive or negative integer (defaults to
151- ``0 ``). The higher the priority , the earlier the listener is called. If two
151+ ``0 ``). The higher the number , the earlier the listener is called. If two
152152 listeners have the same priority, they are executed in the order that they
153153 were added to the dispatcher.
154154
@@ -387,10 +387,12 @@ method::
387387The dispatcher will automatically register the subscriber for each event
388388returned by the ``getSubscribedEvents() `` method. This method returns an array
389389indexed by event names and whose values are either the method name to call
390- or an array composed of the method name to call and a priority. The example
391- above shows how to register several listener methods for the same event
392- in subscriber and also shows how to pass the priority of each listener method.
393- The higher the priority, the earlier the method is called. In the above
390+ or an array composed of the method name to call and a priority (a positive or
391+ negative integer that defaults to ``0 ``).
392+
393+ The example above shows how to register several listener methods for the same
394+ event in subscriber and also shows how to pass the priority of each listener
395+ method. The higher the number, the earlier the method is called. In the above
394396example, when the ``kernel.response `` event is triggered, the methods
395397``onKernelResponsePre() `` and ``onKernelResponsePost() `` are called in that
396398order.
0 commit comments