open() публичный Метод

It does nothing if a DB connection has already been established.
public open ( )
Пример #1
0
 /**
  * @param  boolean    $reset whether to clean up the test database
  * @return Connection
  */
 public function getConnection($reset = true)
 {
     $databases = $this->getParam('databases');
     $params = isset($databases['redis']) ? $databases['redis'] : [];
     $db = new Connection($params);
     if ($reset) {
         $db->open();
         $db->flushdb();
     }
     return $db;
 }