Skip to content

Commit 794c4ff

Browse files
committed
Add extra information on AsEventListener attribute usage
1 parent 5961ea1 commit 794c4ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

event_dispatcher.rst

Lines changed: 3 additions & 1 deletion
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)