diff --git a/event_dispatcher.rst b/event_dispatcher.rst index 897157b4724..dc1682f39e6 100644 --- a/event_dispatcher.rst +++ b/event_dispatcher.rst @@ -162,7 +162,9 @@ having to add any configuration in external files:: } } -You can add multiple ``#[AsEventListener]`` attributes to configure different methods:: +You can add multiple ``#[AsEventListener]`` attributes to configure different methods. +In the below example, for ``foo`` event, ``onFoo`` method will be called +implicitly if method attribute is not set:: namespace App\EventListener;