File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
Framework/Features/Navigation Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 77use Hyde \Foundation \HydeKernel ;
88use Illuminate \Support \ServiceProvider ;
99use Hyde \Framework \Features \Navigation \NavigationManager ;
10+ use Hyde \Framework \Features \Navigation \DocumentationSidebar ;
11+ use Hyde \Framework \Features \Navigation \NavigationMenuGenerator ;
1012use Hyde \Framework \Features \Navigation \GeneratesMainNavigationMenu ;
11- use Hyde \Framework \Features \Navigation \GeneratesDocumentationSidebarMenu ;
1213
1314class NavigationServiceProvider extends ServiceProvider
1415{
@@ -22,7 +23,7 @@ public function register(): void
2223
2324 $ this ->app ->make (HydeKernel::class)->booted (function () {
2425 $ this ->app ->make (NavigationManager::class)->registerMenu ('main ' , GeneratesMainNavigationMenu::handle ());
25- $ this ->app ->make (NavigationManager::class)->registerMenu ('sidebar ' , GeneratesDocumentationSidebarMenu ::handle ());
26+ $ this ->app ->make (NavigationManager::class)->registerMenu ('sidebar ' , NavigationMenuGenerator ::handle (DocumentationSidebar::class ));
2627 });
2728 }
2829}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class DocumentationSidebar extends NavigationMenu
1818 /** @deprecated Will be moved to an action */
1919 public static function create (): static
2020 {
21- return GeneratesDocumentationSidebarMenu ::handle ();
21+ return NavigationMenuGenerator ::handle (DocumentationSidebar::class );
2222 }
2323
2424 public function hasGroups (): bool
Original file line number Diff line number Diff line change 99 */
1010class GeneratesDocumentationSidebarMenu
1111{
12- public static function handle (): DocumentationSidebar
13- {
14- return NavigationMenuGenerator::handle (DocumentationSidebar::class);
15- }
12+ //
1613}
Original file line number Diff line number Diff line change 1818use Illuminate \Support \Collection ;
1919use Hyde \Foundation \Kernel \RouteCollection ;
2020use Hyde \Framework \Features \Navigation \NavItem ;
21+ use Hyde \Framework \Features \Navigation \DocumentationSidebar ;
22+ use Hyde \Framework \Features \Navigation \NavigationMenuGenerator ;
2123use Hyde \Framework \Features \Navigation \GeneratesMainNavigationMenu ;
22- use Hyde \Framework \Features \Navigation \GeneratesDocumentationSidebarMenu ;
2324
2425/**
2526 * High-level broad-spectrum tests for the automatic navigation configurations, testing various setups.
@@ -1246,7 +1247,7 @@ class AssertableNavigationMenu
12461247 public function __construct (TestCase $ test , $ sidebar = false )
12471248 {
12481249 $ this ->items = $ sidebar
1249- ? GeneratesDocumentationSidebarMenu ::handle ()->getItems ()
1250+ ? NavigationMenuGenerator ::handle (DocumentationSidebar::class )->getItems ()
12501251 : GeneratesMainNavigationMenu::handle ()->getItems ();
12511252
12521253 $ this ->test = $ test ;
You can’t perform that action at this time.
0 commit comments