diff --git a/packages/framework/src/Framework/Services/BuildService.php b/packages/framework/src/Framework/Services/BuildService.php index db6079b7c69..ba74adf851c 100644 --- a/packages/framework/src/Framework/Services/BuildService.php +++ b/packages/framework/src/Framework/Services/BuildService.php @@ -6,7 +6,6 @@ use Hyde\Hyde; use Hyde\Foundation\Facades\Routes; -use Hyde\Foundation\Kernel\PageCollection; use Hyde\Foundation\Kernel\RouteCollection; use Hyde\Framework\Actions\StaticPageBuilder; use Hyde\Framework\Concerns\InteractsWithDirectories; @@ -88,7 +87,7 @@ protected function getClassPluralName(string $pageClass): string /** @return array> */ protected function getPageTypes(): array { - return PageCollection::getPages()->map(function (HydePage $page): string { + return Hyde::pages()->map(function (HydePage $page): string { return $page::class; })->unique()->values()->toArray(); }