@@ -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
@@ -384,10 +384,12 @@ method::
384384The dispatcher will automatically register the subscriber for each event
385385returned by the ``getSubscribedEvents() `` method. This method returns an array
386386indexed by event names and whose values are either the method name to call
387- or an array composed of the method name to call and a priority. The example
388- above shows how to register several listener methods for the same event
389- in subscriber and also shows how to pass the priority of each listener method.
390- The higher the priority, the earlier the method is called. In the above
387+ or an array composed of the method name to call and a priority (a positive or
388+ negative integer that defaults to ``0 ``).
389+ 
390+ The example above shows how to register several listener methods for the same
391+ event in subscriber and also shows how to pass the priority of each listener
392+ method. The higher the number, the earlier the method is called. In the above
391393example, when the ``kernel.response `` event is triggered, the methods
392394``onKernelResponsePre() `` and ``onKernelResponsePost() `` are called in that
393395order.
0 commit comments