Application.php
public function add(\Symfony\Component\Console\Command\Command $command)
    {
        parent::add($command);

        // Add to command list.
        $commandName = $command->getName();
        $this->commands[$commandName] = $command;
        $this->commandAliases[$commandName][] = $commandName;

        foreach ($command->getAliases() as $alias) {
            $this->commands[$alias] = $command;
            $this->commandAliases[$commandName][] = $alias;
        }

        return $command;
    }
public function add(\Symfony\Component\Console\Command\Command $command)
    {
        parent::add($command);

        // Add to command list.
        $commandName = $command->getName();
        $this->commands[$commandName] = $command;
        $this->commandAliases[$commandName][] = $commandName;

        foreach ($command->getAliases() as $alias) {
            $this->commands[$alias] = $command;
            $this->commandAliases[$commandName][] = $alias;
        }

        return $command;
    }
public function add ( \ Symfony \ Component \ Console \ Command \ Command $ command ) { parent :: add ( $ command ) ; // Add to command list. $ commandName = $ command -> getName ( ) ; $ this -> commands [ $ commandName ] = $ command ; $ this -> commandAliases [ $ commandName ] [ ] = $ commandName ; foreach ( $ command -> getAliases ( ) as $ alias ) { $ this -> commands [ $ alias ] = $ command ; $ this -> commandAliases [ $ commandName ] [ ] = $ alias ; } return $ command ; }
{@inheritdoc}
{