Skip to content

Commit 81ca5c2

Browse files
committed
Minor tweaks
1 parent f36efc4 commit 81ca5c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

event_dispatcher.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ having to add any configuration in external files::
163163
}
164164

165165
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::
166+
The ``method`` property is optional, and when not defined, it defaults to
167+
``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::
168169

169170
namespace App\EventListener;
170171

0 commit comments

Comments
 (0)