'callbacks.postWatcher']) { $this->ssrHandler = new SSRHandler($interactiveNamespace, $rootElementId, $rootElementAttributes); } public static function isPage(string $path): bool { return isset(ExtensionPoints::portalPages()[$path]); } /** * @return string */ // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- the type hint is the route contract; there is nothing to read off it public function show(Request $request, string $path) { // Both steps are needed for the bundle to load — see // NotificationsPageController::show(). $baseView = new BaseView(); $baseView->registerAssets(); SeoMeta::forPortalPage(ExtensionPoints::portalPages()[$path] ?? $path); return $this->ssrHandler->generateView('/' . $path, [], [], []); } }