public function processCommand(CliEngine $engine, $params = array(), $injectables = null)
{
// we need to wrap our code to catch old-style PHP errors
$legacyHandler = new Legacy_ErrorHandler();
try {
$returnCode = $legacyHandler->run([$this, 'processInsideLegacyHandler'], [$engine, $params, $injectables]);
return $returnCode;
} catch (Exception $e) {
$injectables->output->logCliError($e->getMessage());
exit(1);
}
}