Doctrine\DBAL\DriverManager::_checkParams PHP 메소드

_checkParams() 개인적인 정적인 메소드

Checks the list of parameters.
private static _checkParams ( array $params ) : void
$params array The list of parameters.
리턴 void
    private static function _checkParams(array $params)
    {
        // check existence of mandatory parameters
        // driver
        if (!isset($params['driver']) && !isset($params['driverClass'])) {
            throw DBALException::driverRequired();
        }
        // check validity of parameters
        // driver
        if (isset($params['driver']) && !isset(self::$_driverMap[$params['driver']])) {
            throw DBALException::unknownDriver($params['driver'], array_keys(self::$_driverMap));
        }
        if (isset($params['driverClass']) && !in_array('Doctrine\\DBAL\\Driver', class_implements($params['driverClass'], true))) {
            throw DBALException::invalidDriverClass($params['driverClass']);
        }
    }