We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f36efc4 commit 81ca5c2Copy full SHA for 81ca5c2
event_dispatcher.rst
@@ -163,8 +163,9 @@ having to add any configuration in external files::
163
}
164
165
You can add multiple ``#[AsEventListener]`` attributes to configure different methods.
166
-In the below example, for ``foo`` event, ``onFoo`` method will be called
167
-implicitly if method attribute is not set::
+The ``method`` property is optional, and when not defined, it defaults to
+``on`` + uppercased event name. In the example below, the ``'foo'`` event listener
168
+doesn't explicitly define its method, so the ``onFoo()`` method will be called::
169
170
namespace App\EventListener;
171
0 commit comments