Skip to content

Commit ca1cb62

Browse files
authored
Minor change in description
Listener's method call order It's visually quicker to catch/understand #. If no ``method`` attribute is defined, try to call the method whose name is ``on`` + "PascalCased event name" (e.g. ``onKernelException()`` method for the ``kernel.exception`` event); (and more accurate ) than #. If no ``method`` attribute is defined, try to call the method whose name is ``on`` + "camel-cased event name" (e.g. ``onKernelException()`` method for the ``kernel.exception`` event);
1 parent 0f832cc commit ca1cb62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ listener class:
118118
#. If the ``kernel.event_listener`` tag defines the ``method`` attribute, that's
119119
the name of the method to be called;
120120
#. If no ``method`` attribute is defined, try to call the method whose name
121-
is ``on`` + "camel-cased event name" (e.g. ``onKernelException()`` method for
121+
is ``on`` + "PascalCased event name" (e.g. ``onKernelException()`` method for
122122
the ``kernel.exception`` event);
123123
#. If that method is not defined either, try to call the ``__invoke()`` magic
124124
method (which makes event listeners invokable);

0 commit comments

Comments
 (0)