function PostgreSqlStore::checkDriver
2 calls to PostgreSqlStore::checkDriver()
- PostgreSqlStore::getConnection in vendor/
symfony/ lock/ Store/ PostgreSqlStore.php - PostgreSqlStore::__construct in vendor/
symfony/ lock/ Store/ PostgreSqlStore.php - You can either pass an existing database connection as PDO instance or a DSN string that will be used to lazy-connect to the database when the lock is actually used.
File
-
vendor/
symfony/ lock/ Store/ PostgreSqlStore.php, line 277
Class
- PostgreSqlStore
- PostgreSqlStore is a PersistingStoreInterface implementation using PostgreSql advisory locks.
Namespace
Symfony\Component\Lock\StoreCode
private function checkDriver() : void {
if ('pgsql' !== ($driver = $this->conn
->getAttribute(\PDO::ATTR_DRIVER_NAME))) {
throw new InvalidArgumentException(\sprintf('The adapter "%s" does not support the "%s" driver.', __CLASS__, $driver));
}
}