1 | <?php |
||
22 | class UserEventSubscriber implements EventSubscriberInterface |
||
23 | { |
||
24 | const FOO_EVENT = 'event.foo'; |
||
25 | const BAR_EVENT = 'event.bar'; |
||
26 | const USER_LOGIN = 'user.login'; |
||
27 | |||
28 | /** |
||
29 | * @param LoginUserEvent $event |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | public function onLogin(LoginUserEvent $event) |
||
37 | |||
38 | /** |
||
39 | * @param LoginUserEvent $event |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function onLoginSuccess(LoginUserEvent $event) |
||
47 | |||
48 | /** |
||
49 | * @param Event $event |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function onFoo(Event $event) |
||
56 | |||
57 | /** |
||
58 | * @param Event $event |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function onBar(Event $event) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public static function getSubscribedEvents() |
||
79 | } |
||
80 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.