6use ILIAS\GlobalScreen\Scope\MetaBar\Collector\MetaBarMainCollector;
7use ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider;
8use ILIAS\GlobalScreen\Scope\Tool\Collector\MainToolCollector;
9use ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider;
46 if (!isset(self::$instances[StaticMainMenuProvider::class])) {
47 $providers = $this->provider_factory->getMainBarProvider();
48 $information = $this->provider_factory->getMainBarItemInformation();
49 self::$instances[StaticMainMenuProvider::class] =
new MainMenuMainCollector($providers, $information);
52 return self::$instances[StaticMainMenuProvider::class];
An exception for terminatinating execution or to throw for unit testing.
__construct(ProviderFactoryInterface $provider_factory)
CollectorFactory constructor.
Class MainMenuMainCollector.
Interface ProviderFactoryInterface.
Interface StaticMainMenuProvider.