|
2 | 2 |
|
3 | 3 | use Anomaly\Streams\Platform\Addon\Module\Module; |
4 | 4 | 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; |
11 | 5 | use Anomaly\Streams\Platform\Ui\Icon\Command\GetIcon; |
12 | 6 | use Illuminate\Foundation\Bus\DispatchesJobs; |
13 | 7 | use Illuminate\Routing\UrlGenerator; |
@@ -125,21 +119,8 @@ public function grouping($navigation) |
125 | 119 |
|
126 | 120 | public function buildSection($module) |
127 | 121 | { |
128 | | - $resolver = app(Resolver::class); |
129 | | - |
130 | 122 | $sections = $module->getSections(); |
131 | 123 |
|
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 | | - |
143 | 124 | /* |
144 | 125 | * Loop over each section and make sense of the input |
145 | 126 | * provided for the given module. |
|
0 commit comments