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

        return new static($modules);
    }