Chris@0: getHooks($hooks); Chris@0: foreach ($commandEventHooks as $commandEvent) { Chris@0: if ($commandEvent instanceof EventDispatcherInterface) { Chris@0: $commandEvent->dispatch(ConsoleEvents::COMMAND, $event); Chris@0: } Chris@0: if (is_callable($commandEvent)) { Chris@0: $commandEvent($event); Chris@0: } Chris@0: } Chris@0: } Chris@0: }