| 1 | <?php |
||
| 25 | class UserLocaleSubscriber implements EventSubscriberInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * The default locale. |
||
| 29 | * |
||
| 30 | * @var SessionInterface |
||
| 31 | */ |
||
| 32 | private $session; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param SessionInterface $session |
||
| 36 | */ |
||
| 37 | public function __construct(SessionInterface $session) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Interactive login. |
||
| 44 | * |
||
| 45 | * @param InteractiveLoginEvent $event |
||
| 46 | */ |
||
| 47 | public function onInteractiveLogin(InteractiveLoginEvent $event) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Subscribed events. |
||
| 58 | * |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | public static function getSubscribedEvents() |
||
| 67 | } |
||
| 68 |