public static function TokenHandler::getSubscribedEvents in Persistent Login 8
Specify subscribed events.
Return value
array The subscribed events.
File
- src/
EventSubscriber/ TokenHandler.php, line 91
Class
- TokenHandler
- Class TokenHandler.
Namespace
Drupal\persistent_login\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [];
// Must occur before AuthenticationSubscriber.
$events[KernelEvents::REQUEST][] = [
'loadTokenOnRequestEvent',
310,
];
$events[KernelEvents::RESPONSE][] = [
'setTokenOnResponseEvent',
];
return $events;
}