Skip to content

Commit fc8dad0

Browse files
authored
Revert "fix icon error && added SectionHandler"
1 parent 831f327 commit fc8dad0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Commands/GetInteractiveMenus.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
use Anomaly\Streams\Platform\Addon\Module\Module;
44
use Anomaly\Streams\Platform\Addon\Module\ModuleCollection;
5-
use Anomaly\Streams\Platform\Support\Resolver;
6-
use Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationCollection;
7-
use Anomaly\Streams\Platform\Ui\ControlPanel\Component\Section\SectionCollection;
8-
use Anomaly\Streams\Platform\Ui\ControlPanel\Component\Shortcut\ShortcutCollection;
9-
use Anomaly\Streams\Platform\Ui\ControlPanel\ControlPanel;
10-
use Anomaly\Streams\Platform\Ui\ControlPanel\ControlPanelBuilder;
115
use Anomaly\Streams\Platform\Ui\Icon\Command\GetIcon;
126
use Illuminate\Foundation\Bus\DispatchesJobs;
137
use Illuminate\Routing\UrlGenerator;
@@ -125,21 +119,8 @@ public function grouping($navigation)
125119

126120
public function buildSection($module)
127121
{
128-
$resolver = app(Resolver::class);
129-
130122
$sections = $module->getSections();
131123

132-
if (!$sections && class_exists($sections = get_class($module->getObject()) . 'Sections')) {
133-
134-
$cp = new ControlPanel(collect([]),new SectionCollection(),new ShortcutCollection(),new NavigationCollection());
135-
136-
$builder = new ControlPanelBuilder($cp);
137-
138-
$resolver->resolve($sections . '@handle', compact('builder'));
139-
140-
$sections = $builder->getSections();
141-
}
142-
143124
/*
144125
* Loop over each section and make sense of the input
145126
* provided for the given module.

0 commit comments

Comments
 (0)