src/Valkyrja/Console/NativeConsole.php
public function dispatchCommand(Command $command)
    {
        // Trigger an event before dispatching
        $this->app->events()->trigger('Command.dispatching', [$command]);

        // Dispatch the command
        $dispatch = $this->app->dispatcher()->dispatchCallable(
            $command,
            $command->getMatches()
        );

        // Trigger an event after dispatching
        $this->app->events()->trigger(
            'Command.dispatched',
            [$command, $dispatch]
        );

        return $dispatch;
    }
public function dispatchCommand(Command $command)
    {
        // Trigger an event before dispatching
        $this->app->events()->trigger('Command.dispatching', [$command]);

        // Dispatch the command
        $dispatch = $this->app->dispatcher()->dispatchCallable(
            $command,
            $command->getMatches()
        );

        // Trigger an event after dispatching
        $this->app->events()->trigger(
            'Command.dispatched',
            [$command, $dispatch]
        );

        return $dispatch;
    }
Dispatch a command.

@param Command $command The command

@return mixed