src/Viserio/Component/Parser/Provider/ConsoleCommandsServiceProvider.php
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $console->add(new XliffLintCommand());
        }

        if (\class_exists(Yaml::class)) {
            $console->add(new YamlLintCommand());
        }

        return $console;
    }
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $console->add(new XliffLintCommand());
        }

        if (\class_exists(Yaml::class)) {
            $console->add(new YamlLintCommand());
        }

        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