You are here

public static function ReplicaKillSwitch::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()

File

core/lib/Drupal/Core/Database/ReplicaKillSwitch.php, line 108

Class

ReplicaKillSwitch
Provides replica server kill switch to ignore it.

Namespace

Drupal\Core\Database

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'checkReplicaServer',
  ];
  return $events;
}