eventDispatcher->dispatchTyped(new LoadViewer()); } if (class_exists(LoadEditor::class)) { $this->eventDispatcher->dispatchTyped(new LoadEditor()); } return new TemplateResponse(Application::APP_ID, 'main'); } /** * Render default template * * @psalm-param int<0, max> $appId */ #[NoAdminRequired] #[NoCSRFRequired] #[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)] public function context(int $contextId): TemplateResponse { $navId = Application::APP_ID . '_application_' . $contextId; $this->navigationManager->setActiveEntry($navId); $this->initialState->provideInitialState('contextId', $contextId); return $this->index(); } }