src/Viserio/Bridge/Twig/Provider/ConsoleCommandsServiceProvider.php
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null && $container->has(Environment::class)) {
            $twig = $container->get(Environment::class);

            $console->addCommands([
                new DebugCommand($twig),
                new LintCommand($twig),
            ]);
        }

        return $console;
    }
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null && $container->has(Environment::class)) {
            $twig = $container->get(Environment::class);

            $console->addCommands([
                new DebugCommand($twig),
                new LintCommand($twig),
            ]);
        }

        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