public function ReplicaKillSwitch::__construct in Drupal 9
Same name and namespace in other branches
- 8 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;
}