src/Viserio/Component/Console/Provider/LazilyCommandsServiceProvider.php
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $options = self::resolveOptions($container->get('config'));

            $console->setCommandLoader(new ContainerCommandLoader($container, $options['lazily_commands']));
        }

        return $console;
    }
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $options = self::resolveOptions($container->get('config'));

            $console->setCommandLoader(new ContainerCommandLoader($container, $options['lazily_commands']));
        }

        return $console;
    }
Extend viserio console with commands.

@param \Psr\Container\ContainerInterface           $container
@param null|\Viserio\Component\Console\Application $console

@return null|\Viserio\Component\Console\Application