src/Viserio/Component/Foundation/Provider/ConsoleCommandsServiceProvider.php
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $commands = [];

            if (\class_exists(BaseConfigCacheCommand::class)) {
                $commands = \array_merge(
                    $commands,
                    [
                        new ConfigCacheCommand(),
                        new ConfigClearCommand(),
                    ]
                );
            }

            $console->addCommands($commands);
        }

        return $console;
    }
public static function extendConsole(ContainerInterface $container, ?Application $console = null): ?Application
    {
        if ($console !== null) {
            $commands = [];

            if (\class_exists(BaseConfigCacheCommand::class)) {
                $commands = \array_merge(
                    $commands,
                    [
                        new ConfigCacheCommand(),
                        new ConfigClearCommand(),
                    ]
                );
            }

            $console->addCommands($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