src/Console/SymfonyConsoleServiceProvider.php
public function getApplication(ContainerInterface $container)
    {
        $console = new Application();
        $console->setName($this->name);
        $console->setVersion($this->version);

        // Register commands
        foreach ($this->commands as $command) {
            $console->add(is_string($command) ? $container->get($command) : $command);
        }

        return $console;
    }
public function getApplication(ContainerInterface $container)
    {
        $console = new Application();
        $console->setName($this->name);
        $console->setVersion($this->version);

        // Register commands
        foreach ($this->commands as $command) {
            $console->add(is_string($command) ? $container->get($command) : $command);
        }

        return $console;
    }
@param ContainerInterface $container

@return Application