Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function setFallback(DriverInterface $driver)
 {
     if ($driver->ping()) {
         $this->fallback = $driver;
         return $this->trueAndFlushError();
     } else {
         return $this->falseAndSetError($driver->getError(), $driver->getErrorCode());
     }
 }