Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
CmsServiceProvider
n/a
0 / 0
n/a
0 / 0
1
n/a
0 / 0
 register
n/a
0 / 0
n/a
0 / 0
1
1<?php
2namespace Apie\Cms;
3
4use Apie\ServiceProviderGenerator\UseGeneratedMethods;
5use Illuminate\Support\ServiceProvider;
6
7/**
8 * This file is generated with apie/service-provider-generator from file: cms.yaml
9 * @codeCoverageIgnore
10 */
11class CmsServiceProvider extends ServiceProvider
12{
13    use UseGeneratedMethods;
14
15    public function register()
16    {
17        $this->registerSingleton(
18            \Apie\Cms\Services\ResponseFactory::class,
19            function ($app) {
20                return new \Apie\Cms\Services\ResponseFactory(
21                    $app->make(\Apie\HtmlBuilders\Interfaces\ComponentRendererInterface::class),
22                    $app->make(\Apie\Common\Events\ResponseDispatcher::class)
23                );
24            }
25        );
26        $this->registerSingleton(
27            \Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider::class,
28            function ($app) {
29                return new \Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider(
30                    $app->make(\Apie\Common\ActionDefinitionProvider::class),
31                    $app->make(\Psr\Log\LoggerInterface::class)
32                );
33            }
34        );
35        \Apie\ServiceProviderGenerator\TagMap::register(
36            $this->app,
37            \Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider::class,
38            array(
39              0 =>
40              array(
41                'name' => 'apie.common.route_definition',
42              ),
43            )
44        );
45        $this->app->tag([\Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider::class], 'apie.common.route_definition');
46        $this->registerSingleton(
47            \Apie\Cms\Controllers\DashboardController::class,
48            function ($app) {
49                return new \Apie\Cms\Controllers\DashboardController(
50                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
51                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
52                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
53                    $app->make('apie.cms.dashboard_content')
54                );
55            }
56        );
57        \Apie\ServiceProviderGenerator\TagMap::register(
58            $this->app,
59            \Apie\Cms\Controllers\DashboardController::class,
60            array(
61              0 => 'controller.service_arguments',
62            )
63        );
64        $this->app->tag([\Apie\Cms\Controllers\DashboardController::class], 'controller.service_arguments');
65        $this->registerSingleton(
66            \Apie\Cms\LayoutPicker::class,
67            function ($app) {
68                return new \Apie\Cms\LayoutPicker(
69                
70                );
71            }
72        );
73        $this->registerSingleton(
74            \Apie\Cms\MenuStructure\MainMenuBuilder::class,
75            function ($app) {
76                return new \Apie\Cms\MenuStructure\MainMenuBuilder(
77                    $app->make(\Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider::class),
78                    $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class),
79                    $app->make(\Apie\HtmlBuilders\Configuration\ApplicationConfiguration::class)
80                );
81            }
82        );
83        $this->app->bind('apie.cms.dashboard_content', \Apie\Cms\EmptyDashboard::class);
84        
85        $this->registerSingleton(
86            \Apie\Cms\EmptyDashboard::class,
87            function ($app) {
88                return new \Apie\Cms\EmptyDashboard(
89                
90                );
91            }
92        );
93        $this->registerSingleton(
94            \Apie\Cms\Controllers\LastActionResultController::class,
95            function ($app) {
96                return new \Apie\Cms\Controllers\LastActionResultController(
97                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
98                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
99                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
100                    $app->make(\Apie\HtmlBuilders\Factories\FieldDisplayComponentFactory::class)
101                );
102            }
103        );
104        \Apie\ServiceProviderGenerator\TagMap::register(
105            $this->app,
106            \Apie\Cms\Controllers\LastActionResultController::class,
107            array(
108              0 => 'controller.service_arguments',
109            )
110        );
111        $this->app->tag([\Apie\Cms\Controllers\LastActionResultController::class], 'controller.service_arguments');
112        $this->registerSingleton(
113            \Apie\Cms\Controllers\GetResourceController::class,
114            function ($app) {
115                return new \Apie\Cms\Controllers\GetResourceController(
116                    $app->make(\Apie\Common\ApieFacade::class),
117                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
118                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
119                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
120                );
121            }
122        );
123        \Apie\ServiceProviderGenerator\TagMap::register(
124            $this->app,
125            \Apie\Cms\Controllers\GetResourceController::class,
126            array(
127              0 => 'controller.service_arguments',
128            )
129        );
130        $this->app->tag([\Apie\Cms\Controllers\GetResourceController::class], 'controller.service_arguments');
131        $this->registerSingleton(
132            \Apie\Cms\Controllers\GetResourceListController::class,
133            function ($app) {
134                return new \Apie\Cms\Controllers\GetResourceListController(
135                    $app->make(\Apie\Common\ApieFacade::class),
136                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
137                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
138                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
139                );
140            }
141        );
142        \Apie\ServiceProviderGenerator\TagMap::register(
143            $this->app,
144            \Apie\Cms\Controllers\GetResourceListController::class,
145            array(
146              0 => 'controller.service_arguments',
147            )
148        );
149        $this->app->tag([\Apie\Cms\Controllers\GetResourceListController::class], 'controller.service_arguments');
150        $this->registerSingleton(
151            \Apie\Cms\Controllers\RunGlobalMethodFormController::class,
152            function ($app) {
153                return new \Apie\Cms\Controllers\RunGlobalMethodFormController(
154                    $app->make(\Apie\Common\ApieFacade::class),
155                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
156                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
157                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
158                    $app->make(\Apie\Cms\LayoutPicker::class)
159                );
160            }
161        );
162        \Apie\ServiceProviderGenerator\TagMap::register(
163            $this->app,
164            \Apie\Cms\Controllers\RunGlobalMethodFormController::class,
165            array(
166              0 => 'controller.service_arguments',
167            )
168        );
169        $this->app->tag([\Apie\Cms\Controllers\RunGlobalMethodFormController::class], 'controller.service_arguments');
170        $this->registerSingleton(
171            \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class,
172            function ($app) {
173                return new \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController(
174                    $app->make(\Apie\Common\ApieFacade::class),
175                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
176                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
177                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
178                    $app->make(\Apie\Cms\LayoutPicker::class)
179                );
180            }
181        );
182        \Apie\ServiceProviderGenerator\TagMap::register(
183            $this->app,
184            \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class,
185            array(
186              0 => 'controller.service_arguments',
187            )
188        );
189        $this->app->tag([\Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class], 'controller.service_arguments');
190        $this->registerSingleton(
191            \Apie\Cms\Controllers\CreateResourceFormController::class,
192            function ($app) {
193                return new \Apie\Cms\Controllers\CreateResourceFormController(
194                    $app->make(\Apie\Common\ApieFacade::class),
195                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
196                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
197                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
198                    $app->make(\Apie\Cms\LayoutPicker::class)
199                );
200            }
201        );
202        \Apie\ServiceProviderGenerator\TagMap::register(
203            $this->app,
204            \Apie\Cms\Controllers\CreateResourceFormController::class,
205            array(
206              0 => 'controller.service_arguments',
207            )
208        );
209        $this->app->tag([\Apie\Cms\Controllers\CreateResourceFormController::class], 'controller.service_arguments');
210        $this->registerSingleton(
211            \Apie\Cms\Controllers\ModifyResourceFormController::class,
212            function ($app) {
213                return new \Apie\Cms\Controllers\ModifyResourceFormController(
214                    $app->make(\Apie\Common\ApieFacade::class),
215                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
216                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
217                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
218                    $app->make(\Apie\Cms\LayoutPicker::class)
219                );
220            }
221        );
222        \Apie\ServiceProviderGenerator\TagMap::register(
223            $this->app,
224            \Apie\Cms\Controllers\ModifyResourceFormController::class,
225            array(
226              0 => 'controller.service_arguments',
227            )
228        );
229        $this->app->tag([\Apie\Cms\Controllers\ModifyResourceFormController::class], 'controller.service_arguments');
230        $this->registerSingleton(
231            \Apie\Cms\Controllers\RemoveResourceFormController::class,
232            function ($app) {
233                return new \Apie\Cms\Controllers\RemoveResourceFormController(
234                    $app->make(\Apie\Common\ApieFacade::class),
235                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
236                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
237                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
238                    $app->make(\Apie\Cms\LayoutPicker::class)
239                );
240            }
241        );
242        \Apie\ServiceProviderGenerator\TagMap::register(
243            $this->app,
244            \Apie\Cms\Controllers\RemoveResourceFormController::class,
245            array(
246              0 => 'controller.service_arguments',
247            )
248        );
249        $this->app->tag([\Apie\Cms\Controllers\RemoveResourceFormController::class], 'controller.service_arguments');
250        $this->registerSingleton(
251            \Apie\Cms\Controllers\FormCommitController::class,
252            function ($app) {
253                return new \Apie\Cms\Controllers\FormCommitController(
254                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
255                    $app->make(\Apie\Common\ApieFacade::class),
256                    $app->make(\Apie\HtmlBuilders\Configuration\ApplicationConfiguration::class),
257                    $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class),
258                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
259                );
260            }
261        );
262        \Apie\ServiceProviderGenerator\TagMap::register(
263            $this->app,
264            \Apie\Cms\Controllers\FormCommitController::class,
265            array(
266              0 => 'controller.service_arguments',
267            )
268        );
269        $this->app->tag([\Apie\Cms\Controllers\FormCommitController::class], 'controller.service_arguments');
270        $this->registerSingleton(
271            \Apie\Cms\Translator\GetTranslationsFromMenu::class,
272            function ($app) {
273                return new \Apie\Cms\Translator\GetTranslationsFromMenu(
274                    $app->make(\Apie\Cms\MenuStructure\MainMenuBuilder::class)
275                );
276            }
277        );
278        \Apie\ServiceProviderGenerator\TagMap::register(
279            $this->app,
280            \Apie\Cms\Translator\GetTranslationsFromMenu::class,
281            array(
282              0 => 'apie.translation_collector',
283            )
284        );
285        $this->app->tag([\Apie\Cms\Translator\GetTranslationsFromMenu::class], 'apie.translation_collector');
286        $this->registerSingleton(
287            'cms.layout.graphite_design_system',
288            function ($app) {
289                return \Apie\CmsLayoutGraphite\GraphiteDesignSystemLayout::createRenderer(
290                
291                );
292                
293            }
294        );
295        $this->registerSingleton(
296            'cms.layout.ionic_design_system',
297            function ($app) {
298                return \Apie\CmsLayoutIonic\IonicDesignSystemLayout::createRenderer(
299                
300                );
301                
302            }
303        );
304        $this->registerSingleton(
305            'cms.layout.ugly_design_system',
306            function ($app) {
307                return \Apie\CmsLayoutUgly\UglyDesignSystemLayout::createRenderer(
308                
309                );
310                
311            }
312        );
313        
314    }
315}