if (!
$this->commandsRegistered
) { $this->
setCommandLoader($this->kernel->
getContainer()->
get('console.command_loader'
));
if (!\
in_array($input->
getFirstArgument(), self::IMPORTANT_COMMANDS, true
)) { $this->
registerCommands($output);
} $this->commandsRegistered = true;
} return parent::
doRun($input,
$output);
} /**
* {@inheritdoc}
*/
protected function doRunCommand(Command
$command, InputInterface
$input, OutputInterface
$output) { $eventManager =
$this->kernel->
getContainer()->
get('events'
);
$event =
$eventManager->
notifyUntil('Shopware_Command_Before_Run',
[ 'command' =>
$command,