You are here

static function SecuresiteSubscriber::getSubscribedEvents in Secure Site 8

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

src/EventSubscriber/SecuresiteSubscriber.php, line 102
Contains Drupal\securesite\EventSubscriber\SecuresiteSubscriber.

Class

SecuresiteSubscriber
Subscribes to the kernel request event to check whether authentication is required

Namespace

Drupal\securesite\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequest',
    255,
  );
  $events[KernelEvents::RESPONSE][] = array(
    'onResponse',
    255,
  );
  return $events;
}