Skip to content

Commit 036eec8

Browse files
devojifrjaviereguiluz
authored andcommitted
Add extra information on AsEventListener attribute usage
1 parent 6191592 commit 036eec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

event_dispatcher.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ having to add any configuration in external files::
162162
}
163163
}
164164

165-
You can add multiple ``#[AsEventListener]`` attributes to configure different methods::
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::
166168

167169
namespace App\EventListener;
168170

0 commit comments

Comments
 (0)