Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PostgreSqlStore.php

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\Store

Code

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));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal