src/Viserio/Component/Console/Application.php
public function add(SymfonyCommand $command): ?SymfonyCommand
    {
        if ($command instanceof ViserioCommand) {
            if ($this->container !== null) {
                $command->setContainer($this->container);
            }

            $command->setInvoker($this->getInvoker());
        }

        return parent::add($command);
    }
public function add(SymfonyCommand $command): ?SymfonyCommand
    {
        if ($command instanceof ViserioCommand) {
            if ($this->container !== null) {
                $command->setContainer($this->container);
            }

            $command->setInvoker($this->getInvoker());
        }

        return parent::add($command);
    }
Add a command to the console.

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

@return null|\Symfony\Component\Console\Command\Command|\Viserio\Component\Console\Command\AbstractCommand