You are here

public static function ProxySubscriber::getSubscribedEvents in Stage File Proxy 8

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

src/EventSubscriber/ProxySubscriber.php, line 205

Class

ProxySubscriber
Stage file proxy subscriber for controller requests.

Namespace

Drupal\stage_file_proxy\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Priority 240 is after ban middleware but before page cache.
  $events[KernelEvents::REQUEST][] = [
    'checkFileOrigin',
    240,
  ];
  return $events;
}