public function __construct(NavigationContainerService $mainService, NavigationPageService $pageService, $mainRouteName, $subRouteName) { parent::__construct(); $this->mainService = $mainService; $this->pageService = $pageService; $this->viewData['mainRouteName'] = $mainRouteName; $this->viewData['subRouteName'] = $subRouteName; }
public function __construct(NavigationPageService $mainService, NavigationContainerService $containerService, $pageRoute, $controllerPage) { parent::__construct(); $this->mainService = $mainService; $this->containerService = $containerService; $this->viewData['mainRouteName'] = $pageRoute; $this->viewData['parentRouteName'] = $controllerPage; }