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