示例#1
0
 /**
  * {@inheritdoc}
  */
 public function connect()
 {
     $config = new \Doctrine\DBAL\Configuration();
     self::$conn = \Doctrine\DBAL\DriverManager::getConnection($this->databaseConfig, $config);
     return true;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function connect($connectionParams)
 {
     $config = new \Doctrine\DBAL\Configuration();
     self::$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
 }