예제 #1
0
파일: Connection.php 프로젝트: nextras/dbal
 /**
  * Connects to a database.
  * @return void
  * @throws ConnectionException
  */
 public function connect()
 {
     if ($this->connected) {
         return;
     }
     $this->driver->connect($this->config);
     $this->connected = TRUE;
     $this->fireEvent('onConnect', [$this]);
 }