Exemplo n.º 1
0
 /**
  * @param mixed $error
  * @return void
  */
 protected function handleError($error)
 {
     if ($error instanceof Error) {
         $this->logger->error(sprintf('%s (%s)', $error->getMessage(), $error->getCode()));
         echo $error->getCode();
     } else {
         $this->logger->error('Unknown Error while dispatching the controller action. (1400683671)', get_class($this));
         echo 1400683671;
     }
 }
Exemplo n.º 2
0
 /**
  * @return void
  */
 protected function checkResult()
 {
     if ($this->exitCode !== 0) {
         $this->logger->error(sprintf("Shell command \"%s\" returned exist status %s", $this->command, $this->exitCode), __CLASS__);
     }
 }