File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/framework/src/Framework/Services Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ This serves two purposes:
5656- Markdown returned from includes are now trimmed of trailing whitespace and newlines in https://github.com/hydephp/develop/pull/1738
5757- Reorganized and cleaned up the navigation and sidebar documentation for improved clarity.
5858- Moved the sidebar documentation to the documentation pages section for better organization.
59+ - The build command now groups together all ` InMemoryPage ` instances under one progress bar group in https://github.com/hydephp/develop/pull/1897
5960
6061### Deprecated
6162- for soon-to-be removed features.
Original file line number Diff line number Diff line change 55namespace Hyde \Framework \Services ;
66
77use Hyde \Hyde ;
8+ use Hyde \Pages \InMemoryPage ;
89use Hyde \Foundation \Facades \Routes ;
910use Hyde \Foundation \Kernel \RouteCollection ;
1011use Hyde \Framework \Actions \StaticPageBuilder ;
@@ -62,13 +63,21 @@ protected function compilePagesForClass(string $pageClass): void
6263
6364 protected function getClassPluralName (string $ pageClass ): string
6465 {
66+ if ($ pageClass === InMemoryPage::class) {
67+ return 'Dynamic Pages ' ;
68+ }
69+
6570 return preg_replace ('/([a-z])([A-Z])/ ' , '$1 $2 ' , class_basename ($ pageClass )).'s ' ;
6671 }
6772
6873 /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */
6974 protected function getPageTypes (): array
7075 {
7176 return Hyde::pages ()->map (function (HydePage $ page ): string {
77+ if ($ page instanceof InMemoryPage) {
78+ return InMemoryPage::class;
79+ }
80+
7281 return $ page ::class;
7382 })->unique ()->values ()->toArray ();
7483 }
You can’t perform that action at this time.
0 commit comments