src/DB.php
final private static function getFactory($driver) {
        $key = array_search(strtolower($driver), array_map('strtolower', array_keys(self::$factories)));
        if($key === false) throw new DriverException('Driver not found');
        $factories = array_values(self::$factories);
        return $factories[$key];
    }
final private static function getFactory($driver) {
        $key = array_search(strtolower($driver), array_map('strtolower', array_keys(self::$factories)));
        if($key === false) throw new DriverException('Driver not found');
        $factories = array_values(self::$factories);
        return $factories[$key];
    }
final private static function getFactory ( $ driver ) { $ key = array_search ( strtolower ( $ driver ) , array_map ( 'strtolower' , array_keys ( self :: $ factories ) ) ) ; if ( $ key === false ) throw new DriverException ( 'Driver not found' ) ; $ factories = array_values ( self :: $ factories ) ; return $ factories [ $ key ] ; }
Get a factory for the requested driver
@param string $driver Driver name. Case insensitive.
@return Factory Matching factory.
@throws DriverException
Get a factory for the requested driver