InitSubscriber.php in Lightweight Directory Access Protocol (LDAP) 8.3
Namespace
Drupal\ldap_user\EventSubscriberFile
ldap_user/src/EventSubscriber/InitSubscriber.phpView source
<?php
namespace Drupal\ldap_user\EventSubscriber;
use Drupal\ldap_user\Helper\SemaphoreStorage;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* Subscriber for the semaphore storage.
*/
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();
}
}
Classes
Name | Description |
---|---|
InitSubscriber | Subscriber for the semaphore storage. |