public function createDoctrineDBALConnection($driver, $host, $port, $dbname, $user, $password)
    {
        // TODO caching for connection

        $connectionFactory = $this->getDoctrineConnectionFactory();

        $connection = $connectionFactory->createConnection(array(
            'driver' => $driver,
            'host' => $host,
            'port' => $port,
            'dbname' => $dbname,
            'user' => $user,
            'password' => $password,
        ));

        return $connection;
    }
public function createDoctrineDBALConnection($driver, $host, $port, $dbname, $user, $password)
    {
        // TODO caching for connection

        $connectionFactory = $this->getDoctrineConnectionFactory();

        $connection = $connectionFactory->createConnection(array(
            'driver' => $driver,
            'host' => $host,
            'port' => $port,
            'dbname' => $dbname,
            'user' => $user,
            'password' => $password,
        ));

        return $connection;
    }
public function createDoctrineDBALConnection ( $ driver , $ host , $ port , $ dbname , $ user , $ password ) { // TODO caching for connection $ connectionFactory = $ this -> getDoctrineConnectionFactory ( ) ; $ connection = $ connectionFactory -> createConnection ( array ( 'driver' => $ driver , 'host' => $ host , 'port' => $ port , 'dbname' => $ dbname , 'user' => $ user , 'password' => $ password , ) ) ; return $ connection ; }
Creates a Doctrine DBAL Connection

@param string $driver
@param string $host
@param string $port
@param string $dbname
@param string $user
@param string $password
@return \Doctrine\DBAL\Connection
Creates a Doctrine DBAL Connection