class InitSubscriber in Lightweight Directory Access Protocol (LDAP) 8.3
Subscriber for the semaphore storage.
Hierarchy
- class \Drupal\ldap_user\EventSubscriber\InitSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of InitSubscriber
1 string reference to 'InitSubscriber'
- ldap_user.services.yml in ldap_user/
ldap_user.services.yml - ldap_user/ldap_user.services.yml
1 service uses InitSubscriber
File
- ldap_user/
src/ EventSubscriber/ InitSubscriber.php, line 12
Namespace
Drupal\ldap_user\EventSubscriberView source
class InitSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
return [
KernelEvents::REQUEST => [
'onEvent',
0,
],
];
}
/**
* {@inheritdoc}
*/
public function onEvent() {
// Reset for simpletest page load behavior.
SemaphoreStorage::flushAllValues();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InitSubscriber:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
InitSubscriber:: |
public | function |