/** * @param CoreInterface $core * @param MenuRepositoryInterface $menu */ public function __construct(CoreInterface $core, MenuRepositoryInterface $menu) { parent::__construct($core); $this->menu = $menu; // For web routes, the menu structure is initialized by middleware; // here we must initialize it on-demand for menu-specific requests. $this->menu->initialize(); }
/** * @param CoreInterface $core * @param LocaleRepositoryInterface $repository */ public function __construct(CoreInterface $core, LocaleRepositoryInterface $repository) { parent::__construct($core); $this->repository = $repository; }
/** * @param CoreInterface $core * @param ModuleManagerInterface $modules */ public function __construct(CoreInterface $core, ModuleManagerInterface $modules) { parent::__construct($core); $this->modules = $modules; }