diff --git a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php index af1c39b5892..06530bb84a9 100644 --- a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php +++ b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php @@ -46,6 +46,7 @@ public static function enabled(): bool return Config::getBool('docs.create_search_page', true) && ! Hyde::routes()->has(self::routeKey()); } + /** @deprecated Can be removed by https://github.com/hydephp/develop/pull/1498 */ public static function routeKey(): string { return ltrim(DocumentationPage::outputDirectory().'/search'); diff --git a/packages/realtime-compiler/src/Routing/PageRouter.php b/packages/realtime-compiler/src/Routing/PageRouter.php index 1e41b531bd4..3d29cc7d18c 100644 --- a/packages/realtime-compiler/src/Routing/PageRouter.php +++ b/packages/realtime-compiler/src/Routing/PageRouter.php @@ -90,6 +90,7 @@ public static function handle(Request $request): Response protected function getPageFromRoute(): HydePage { + /** @deprecated Can be removed by https://github.com/hydephp/develop/pull/1498 */ if (unslash($this->request->path) === DocumentationSearchPage::routeKey() && DocumentationSearchPage::enabled()) { // Since this page is not present within the search index (as it's normally generated by a build task) // we instantiate and return it here.