Skip to content

Commit

Permalink
Deprecate internal logic to be removed within refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 15, 2023
1 parent c79e439 commit eefcaf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions packages/realtime-compiler/src/Routing/PageRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eefcaf4

Please sign in to comment.