userId = $UserId; $this->appName = $AppName; $this->eventDispatcher = $eventDispatcher; } /** * @NoAdminRequired * @NoCSRFRequired */ public function main() { Util::addScript($this->appName, 'memories-main'); Util::addStyle($this->appName, 'icons'); $this->eventDispatcher->dispatchTyped(new LoadViewer()); $response = new TemplateResponse($this->appName, 'main'); return $response; } /** * @NoAdminRequired * @NoCSRFRequired */ public function album() { return $this->main(); } }