You are here

public static function CasSubscriber::getSubscribedEvents in CAS 8

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides HttpExceptionSubscriberBase::getSubscribedEvents

File

src/Subscriber/CasSubscriber.php, line 139

Class

CasSubscriber
Provides a CasSubscriber.

Namespace

Drupal\cas\Subscriber

Code

public static function getSubscribedEvents() {

  // Priority is just before the Dynamic Page Cache subscriber, but after
  // important services like route matcher and maintenance mode subscribers.
  $events[KernelEvents::REQUEST][] = [
    'handle',
    29,
  ];
  $events[KernelEvents::EXCEPTION][] = [
    'onException',
    0,
  ];
  return $events;
}