original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Creates a Doctrine DBAL Connection