Example #1
0
 protected function reconnect()
 {
     $this->connection->reconnect();
     $this->connection->writeAuthentication($this->server->getUser(), $this->server->getPassword());
     if (!$this->connection->isValid()) {
         throw new ConnectionException();
     }
 }