$event =
$eventManager->
notifyUntil('Shopware_Command_Before_Run',
[ 'command' =>
$command,
'input' =>
$input,
'output' =>
$output,
]);
if ($event) { return (int) $event->
getReturn();
} $exitCode = parent::
doRunCommand($command,
$input,
$output);
$eventManager->
notify('Shopware_Command_After_Run',
[ 'exitCode' =>
$exitCode,
'command' =>
$command,
'input' =>
$input,
'output' =>
$output,
]);
return $exitCode;
}