public function startup() { parent::startup(); if (!$this->user->isLoggedIn()) { $this->redirect(':Sign:in'); } $this->identity = $this->user->identity; $this->userEntity = $this->userService->get($this->identity->id); $this->navigation = new NavigationCollection($this->translator); $this->template->navigation = $this->navigation; $this->template->systemName = systemName; $this->template->author = $this->userEntity->getEmail(); }