1 | <?php |
||
22 | class AuthenticationListener implements EventSubscriberInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var LoginManagerInterface |
||
26 | */ |
||
27 | protected $loginManager; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $firewallName; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param LoginManagerInterface $loginManager |
||
38 | * @param string $firewallName |
||
39 | */ |
||
40 | public function __construct(LoginManagerInterface $loginManager, $firewallName) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSubscribedEvents() |
||
56 | |||
57 | /** |
||
58 | * Authenticates the user. |
||
59 | * |
||
60 | * @param FilterUserResponseEvent $event |
||
61 | * @param string $eventName |
||
62 | * @param EventDispatcherInterface $dispatcher |
||
63 | */ |
||
64 | public function authenticate(FilterUserResponseEvent $event, $eventName, EventDispatcherInterface $dispatcher) |
||
75 | } |
||
76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.