function ReplicaKillSwitch::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::__construct()
- 8.9.x core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::__construct()
- 10 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::__construct()
Constructs a ReplicaKillSwitch object.
Parameters
\Drupal\Core\Site\Settings $settings: The settings object.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.
File
-
core/
lib/ Drupal/ Core/ Database/ ReplicaKillSwitch.php, line 48
Class
- ReplicaKillSwitch
- Provides replica server kill switch to ignore it.
Namespace
Drupal\Core\DatabaseCode
public function __construct(Settings $settings, TimeInterface $time, SessionInterface $session) {
$this->settings = $settings;
$this->time = $time;
$this->session = $session;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.