src/Console/Event/Configuring.php
public function addCommand($command)
    {
        if (is_string($command)) {
            $command = $this->app->make($command);
        }

        if ($command instanceof Command) {
            $command->setLaravel($this->app);
        }

        $this->console->add($command);
    }
public function addCommand($command)
    {
        if (is_string($command)) {
            $command = $this->app->make($command);
        }

        if ($command instanceof Command) {
            $command->setLaravel($this->app);
        }

        $this->console->add($command);
    }
public function addCommand ( $ command ) { if ( is_string ( $ command ) ) { $ command = $ this -> app -> make ( $ command ) ; } if ( $ command instanceof Command ) { $ command -> setLaravel ( $ this -> app ) ; } $ this -> console -> add ( $ command ) ; }
Add a console command to the flarum binary.

@param Command|string $command
Add a console command to the flarum binary .