/** * Handle the specified command. * @param CommandInterface $command */ public function handle(CommandInterface $command) { $handlerName = $command->getCommandName() . 'Handler'; $handlers = $this->loadHandlers($handlerName); foreach ($handlers as $handler) { $handler->handle($command); } }