src/Leevel/Console/Application.php
public function add(SymfonyCommand $command)
    {
        if ($command instanceof Command) {
            $command->setContainer($this->container);
        }

        return parent::add($command);
    }
public function add(SymfonyCommand $command)
    {
        if ($command instanceof Command) {
            $command->setContainer($this->container);
        }

        return parent::add($command);
    }
添加一条命令.

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

@return \Symfony\Component\Console\Command\Command