Dispatch an event to composer

@param	string	$command	Command message being dispatched
@return	void
972788
private static function _dispatch($command)
	{
		$dispatcher = self::_getDispatcher();
		$commandEvent = new CommandEvent(PluginEvents::COMMAND, $command, self::_getIO(), self::_getIO());
		$dispatcher->dispatch($commandEvent->getName(), $commandEvent);
	}
338493
function callbackCommandRegister(\CharlotteDunois\Livia\Commands\Command $command) {
        foreach($this->settings as $guild => $settings) {
            if($guild !== 'global' && !$this->client->guilds->has($guild)) {
                continue;
            }
            
            $this->setupGuildCommand($guild, $command, $settings);
        }
    }
426077
protected function fireAfterCommandEvent($command, $result)
	{
		$eventName = $this->commandNameToEventName($command);

		$args = [$command, $result];

		$this->fireEvent($eventName, 'after', $args);
	}
692019
protected function registerMakeAddonCommand($command)
    {
        $this->app->singleton($command, function ($app) {
            return new Addons\Commands\AddonMakeCommand($app);
        });
    }
472383
protected function runProcess($command, $messages = '', $output)
    {
        // Generate autoload file from composer
        $process = new Process($command);

        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("<info>{$message}</info>");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln("<info>{$messages}</info>");
            $output->writeln('');
        }

        $process->run(function ($type, $buffer) {
            if (Process::ERR === $type) {
                echo $buffer;
            } else {
                echo $buffer;
            }
        });

        $output->writeln('');
    }
229668
protected function forceCommand($command)
    {
        if ((
            Str::startsWith($command, 'migrate') === true && Str::startsWith($command, 'migrate:status') === false ||
            Str::startsWith($command, 'db:seed') === true
        ) && strpos($command, '--force') === false) {
            $command .= ' --force';
        }

        if ((
            is_null($this->laravel) === false &&
            version_compare($this->laravel->version(), 5.5, '>=') &&
            Str::startsWith($command, 'vendor:publish') === true
        ) && strpos($command, '--all') === false) {
            $command .= ' --all';
        }

        return $command;
    }
983799
public function fireUpdatingCommand(Command $command)
    {
        $this->handleMainCommand($command);

        event(new SystemWasUpdatedEvent());

        $command->info('System was updated!');
    }
244317
public function onCommand($event)
    {
        $this->data['commands'][] = array(
            'command' => $event->getCommand(),
            'arguments' => $event->getArguments(),
            'executiontime' => $event->getExecutionTime(),
        );
    }
469485
public function fire(Command $command)
    {
        $gitignorePath = base_path('.gitignore');

        if (! $this->gitignoreContainsComposerLock($gitignorePath)) {
            return;
        }

        $removeComposerLock = $command->confirm('Do you want to remove composer.lock from .gitignore ?', true);
        if ($removeComposerLock) {
            $out = $this->getGitignoreLinesButComposerLock($gitignorePath);
            $this->writeNewGitignore($gitignorePath, $out);
        }
    }
1040633
protected function registerMakeEventCommand($command)
     {
         $this->app->singleton($command, function ($app) {
             return new Generators\Commands\EventMakeCommand($app);
         });
     }
1310430
public function fireInstallingCommand(Command $command)
    {
        $this->handleMainCommand($command);

        event(new SystemWasInstalledEvent());

        $command->info('System was installed!');
    }
1260755
protected function dispatch(string $command): int
	{
		try
		{
			$exitCode = $this->dispatcher->dispatch($this->commands[$command], $this->input->getArguments(), $this->getGlobalOptionNames());
		}
		catch(InvalidOptionException $e)
		{
			$this->output->errorLn('<red>' . $e->getMessageWithSuggestion() . '</red>');
		}
		catch(InvalidArgumentException | MissingOptionException | MissingArgumentException $e)
		{
			$this->output->errorLn('<red>' . $e->getMessage() . '</red>');
		}

		return $exitCode ?? CommandInterface::STATUS_ERROR;
	}
1157029
protected function _buildCommand($command)
    {
        $url = $command->receiver->getURL();

        $command->setAttribute('data-action', $command->action);
        $command->setAttribute('data-actor', $command->actor->id);

        if (!$this->_use_post && $this->getController()->getRequest()->getFormat() != 'json') {
            $url .= '&layout=list';
        }

        $command->href($url);
    }
836621
protected function registerMakeControllerCommand($command)
    {
        $this->app->singleton($command, function ($app) {
            return new Generators\Commands\ControllerMakeCommand($app);
        });
    }
1255486
public function dispatch($command) {
        $type = $this->getCommandType($command);
        $definition = $this->getDefinition($type);

        if ( ! $definition instanceof IDefinition) {
            throw new UnhandledCommandException(
                s('Command %s could not be dispatched. Missing command handler.',
                    get_type($command))
            );
        }

        return $this->invokeDefinition($definition, $command);
    }
202351
protected function createEventFromCommand(Command $command, string $suffix): Event
    {
        $curie = $command::schema()->getCurie();
        $eventCurie = "{$curie->getVendor()}:{$curie->getPackage()}:event:app-{$suffix}";

        /** @var Event $class */
        $class = MessageResolver::resolveCurie(SchemaCurie::fromString($eventCurie));
        return $class::create();
    }
826734
public function runEvent($event)
    {
        $this->line('<info>Running scheduled command:</info> '.$event->getSummaryForDisplay());
        $event->run($this->laravel);
        $this->eventsRan = true;
    }