public function registerCommand(SymfonyCommand $command): void
    {
        $this->bootstrap();

        $this->getConsole()->add($command);
    }
public function registerCommand(SymfonyCommand $command): void
    {
        $this->bootstrap();

        $this->getConsole()->add($command);
    }
public function registerCommand ( SymfonyCommand $ command ) : void { $ this -> bootstrap ( ) ; $ this -> getConsole ( ) -> add ( $ command ) ; }
Register the given command with the console application.

@param \Symfony\Component\Console\Command\Command $command

@return void
Register the given command with the console application .