public run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer | ||
$input | Symfony\Component\Console\Input\InputInterface | An Input instance |
$output | Symfony\Component\Console\Output\OutputInterface | An Output instance |
리턴 | integer | 0 if everything went fine, or an error code |
public function run(InputInterface $input = null, OutputInterface $output = null)
{
try {
return parent::run($input, $output);
} catch (Exception $e) {
if ($this->isAjax() === false) {
throw $e;
}
while ($prevException = $e->getPrevious()) {
$e = $prevException;
}
$this->renderException($e, $output);
return 1;
} catch (Throwable $e) {
if ($this->isAjax() === false) {
throw $e;
}
$e = new FatalThrowableError($e);
$this->renderException($e, $output);
return 1;
}
}