Skip to content

Commit f36efc4

Browse files
committed
minor #19890 Add extra information on AsEventListener attribute usage (devojifr)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Add extra information on AsEventListener attribute usage The AsEventListener attribute has an implicit call to "on{Event}" if method attribute is not set. Commits ------- 036eec8 Add extra information on AsEventListener attribute usage
2 parents 6191592 + 036eec8 commit f36efc4

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)