private function createPdo($vendor, array $options)
    {
        // First of all, make sure it's possible to instantiate PDO instance by vendor name
        if (isset($this->map[$vendor])) {
            $connector = $this->map[$vendor];

            $driver = new $connector();

            $builder = new InstanceBuilder();
            return $builder->build('\Krystal\Db\Sql\LazyPDO', $driver->getArgs($options));

        } else {
            throw new RuntimeException(sprintf('Unknown database vendor name supplied "%s"', $vendor));
        }
    }
private function createPdo($vendor, array $options)
    {
        // First of all, make sure it's possible to instantiate PDO instance by vendor name
        if (isset($this->map[$vendor])) {
            $connector = $this->map[$vendor];

            $driver = new $connector();

            $builder = new InstanceBuilder();
            return $builder->build('\Krystal\Db\Sql\LazyPDO', $driver->getArgs($options));

        } else {
            throw new RuntimeException(sprintf('Unknown database vendor name supplied "%s"', $vendor));
        }
    }
private function createPdo ( $ vendor , array $ options ) { // First of all, make sure it's possible to instantiate PDO instance by vendor name if ( isset ( $ this -> map [ $ vendor ] ) ) { $ connector = $ this -> map [ $ vendor ] ; $ driver = new $ connector ( ) ; $ builder = new InstanceBuilder ( ) ; return $ builder -> build ( '\Krystal\Db\Sql\LazyPDO' , $ driver -> getArgs ( $ options ) ) ; } else { throw new RuntimeException ( sprintf ( 'Unknown database vendor name supplied "%s"' , $ vendor ) ) ; } }
Returns PDO instance

@param string $connector Driver name
@param array $options Options for connection, such as username and password
@throws \RuntimeException If unknown vendor name supplied
@return \Krystal\Db\Sql\LazyPDO
Returns PDO instance