src/Controller/Console/AssetsInstallController.php
public static function factory(ContainerInterface $container)
    {
        /* @var ModuleManager $manager */
        $manager = $container->get('ModuleManager');
        $modules = $manager->getLoadedModules();

        return new static($modules);
    }
public static function factory(ContainerInterface $container)
    {
        /* @var ModuleManager $manager */
        $manager = $container->get('ModuleManager');
        $modules = $manager->getLoadedModules();

        return new static($modules);
    }
Creates new object
@param   ContainerInterface $container
@return AssetsInstallController