'exitCode' =>
$exitCode,
'command' =>
$command,
'input' =>
$input,
'output' =>
$output,
]);
return $exitCode;
} protected function registerCommands(OutputInterface
$output) { $this->
registerTaggedServiceIds();
if (!
$this->skipDatabase
) { // Wrap database related logic in a try-catch
// so that non-db commands can still execute
try { $em =
$this->kernel->
getContainer()->
get(ModelManager::
class);
// Setup doctrine commands
$helperSet =
$this->
getHelperSet();
$helperSet->
set(new EntityManagerHelper($em), 'em'
);
$helperSet->
set(new ConnectionHelper($em->
getConnection()), 'db'
);