function PostgreSqlStore::getConnection
1 call to PostgreSqlStore::getConnection()
- PostgreSqlStore::getInternalStore in vendor/
symfony/ lock/ Store/ PostgreSqlStore.php
File
-
vendor/
symfony/ lock/ Store/ PostgreSqlStore.php, line 265
Class
- PostgreSqlStore
- PostgreSqlStore is a PersistingStoreInterface implementation using PostgreSql advisory locks.
Namespace
Symfony\Component\Lock\StoreCode
private function getConnection() : \PDO {
if (!isset($this->conn)) {
$this->conn = new \PDO($this->dsn, $this->username, $this->password, $this->connectionOptions);
$this->conn
->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$this->checkDriver();
}
return $this->conn;
}