/** * @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; } }
/** * @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__); } }