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                );
80            }
81        );
82        $this->app->bind('apie.cms.dashboard_content', \Apie\Cms\EmptyDashboard::class);
83        
84        $this->registerSingleton(
85            \Apie\Cms\EmptyDashboard::class,
86            function ($app) {
87                return new \Apie\Cms\EmptyDashboard(
88                
89                );
90            }
91        );
92        $this->registerSingleton(
93            \Apie\Cms\Controllers\LastActionResultController::class,
94            function ($app) {
95                return new \Apie\Cms\Controllers\LastActionResultController(
96                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
97                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
98                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
99                    $app->make(\Apie\HtmlBuilders\Factories\FieldDisplayComponentFactory::class)
100                );
101            }
102        );
103        \Apie\ServiceProviderGenerator\TagMap::register(
104            $this->app,
105            \Apie\Cms\Controllers\LastActionResultController::class,
106            array(
107              0 => 'controller.service_arguments',
108            )
109        );
110        $this->app->tag([\Apie\Cms\Controllers\LastActionResultController::class], 'controller.service_arguments');
111        $this->registerSingleton(
112            \Apie\Cms\Controllers\GetResourceController::class,
113            function ($app) {
114                return new \Apie\Cms\Controllers\GetResourceController(
115                    $app->make(\Apie\Common\ApieFacade::class),
116                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
117                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
118                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
119                );
120            }
121        );
122        \Apie\ServiceProviderGenerator\TagMap::register(
123            $this->app,
124            \Apie\Cms\Controllers\GetResourceController::class,
125            array(
126              0 => 'controller.service_arguments',
127            )
128        );
129        $this->app->tag([\Apie\Cms\Controllers\GetResourceController::class], 'controller.service_arguments');
130        $this->registerSingleton(
131            \Apie\Cms\Controllers\GetResourceListController::class,
132            function ($app) {
133                return new \Apie\Cms\Controllers\GetResourceListController(
134                    $app->make(\Apie\Common\ApieFacade::class),
135                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
136                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
137                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
138                );
139            }
140        );
141        \Apie\ServiceProviderGenerator\TagMap::register(
142            $this->app,
143            \Apie\Cms\Controllers\GetResourceListController::class,
144            array(
145              0 => 'controller.service_arguments',
146            )
147        );
148        $this->app->tag([\Apie\Cms\Controllers\GetResourceListController::class], 'controller.service_arguments');
149        $this->registerSingleton(
150            \Apie\Cms\Controllers\RunGlobalMethodFormController::class,
151            function ($app) {
152                return new \Apie\Cms\Controllers\RunGlobalMethodFormController(
153                    $app->make(\Apie\Common\ApieFacade::class),
154                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
155                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
156                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
157                    $app->make(\Apie\Cms\LayoutPicker::class)
158                );
159            }
160        );
161        \Apie\ServiceProviderGenerator\TagMap::register(
162            $this->app,
163            \Apie\Cms\Controllers\RunGlobalMethodFormController::class,
164            array(
165              0 => 'controller.service_arguments',
166            )
167        );
168        $this->app->tag([\Apie\Cms\Controllers\RunGlobalMethodFormController::class], 'controller.service_arguments');
169        $this->registerSingleton(
170            \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class,
171            function ($app) {
172                return new \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController(
173                    $app->make(\Apie\Common\ApieFacade::class),
174                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
175                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
176                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
177                    $app->make(\Apie\Cms\LayoutPicker::class)
178                );
179            }
180        );
181        \Apie\ServiceProviderGenerator\TagMap::register(
182            $this->app,
183            \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class,
184            array(
185              0 => 'controller.service_arguments',
186            )
187        );
188        $this->app->tag([\Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class], 'controller.service_arguments');
189        $this->registerSingleton(
190            \Apie\Cms\Controllers\CreateResourceFormController::class,
191            function ($app) {
192                return new \Apie\Cms\Controllers\CreateResourceFormController(
193                    $app->make(\Apie\Common\ApieFacade::class),
194                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
195                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
196                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
197                    $app->make(\Apie\Cms\LayoutPicker::class)
198                );
199            }
200        );
201        \Apie\ServiceProviderGenerator\TagMap::register(
202            $this->app,
203            \Apie\Cms\Controllers\CreateResourceFormController::class,
204            array(
205              0 => 'controller.service_arguments',
206            )
207        );
208        $this->app->tag([\Apie\Cms\Controllers\CreateResourceFormController::class], 'controller.service_arguments');
209        $this->registerSingleton(
210            \Apie\Cms\Controllers\ModifyResourceFormController::class,
211            function ($app) {
212                return new \Apie\Cms\Controllers\ModifyResourceFormController(
213                    $app->make(\Apie\Common\ApieFacade::class),
214                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
215                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
216                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
217                    $app->make(\Apie\Cms\LayoutPicker::class)
218                );
219            }
220        );
221        \Apie\ServiceProviderGenerator\TagMap::register(
222            $this->app,
223            \Apie\Cms\Controllers\ModifyResourceFormController::class,
224            array(
225              0 => 'controller.service_arguments',
226            )
227        );
228        $this->app->tag([\Apie\Cms\Controllers\ModifyResourceFormController::class], 'controller.service_arguments');
229        $this->registerSingleton(
230            \Apie\Cms\Controllers\RemoveResourceFormController::class,
231            function ($app) {
232                return new \Apie\Cms\Controllers\RemoveResourceFormController(
233                    $app->make(\Apie\Common\ApieFacade::class),
234                    $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class),
235                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
236                    $app->make(\Apie\Cms\Services\ResponseFactory::class),
237                    $app->make(\Apie\Cms\LayoutPicker::class)
238                );
239            }
240        );
241        \Apie\ServiceProviderGenerator\TagMap::register(
242            $this->app,
243            \Apie\Cms\Controllers\RemoveResourceFormController::class,
244            array(
245              0 => 'controller.service_arguments',
246            )
247        );
248        $this->app->tag([\Apie\Cms\Controllers\RemoveResourceFormController::class], 'controller.service_arguments');
249        $this->registerSingleton(
250            \Apie\Cms\Controllers\FormCommitController::class,
251            function ($app) {
252                return new \Apie\Cms\Controllers\FormCommitController(
253                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
254                    $app->make(\Apie\Common\ApieFacade::class),
255                    $app->make(\Apie\HtmlBuilders\Configuration\ApplicationConfiguration::class),
256                    $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class),
257                    $app->make(\Apie\Cms\Services\ResponseFactory::class)
258                );
259            }
260        );
261        \Apie\ServiceProviderGenerator\TagMap::register(
262            $this->app,
263            \Apie\Cms\Controllers\FormCommitController::class,
264            array(
265              0 => 'controller.service_arguments',
266            )
267        );
268        $this->app->tag([\Apie\Cms\Controllers\FormCommitController::class], 'controller.service_arguments');
269        $this->registerSingleton(
270            'cms.layout.graphite_design_system',
271            function ($app) {
272                return \Apie\CmsLayoutGraphite\GraphiteDesignSystemLayout::createRenderer(
273                
274                );
275                
276            }
277        );
278        $this->registerSingleton(
279            'cms.layout.ionic_design_system',
280            function ($app) {
281                return \Apie\CmsLayoutIonic\IonicDesignSystemLayout::createRenderer(
282                
283                );
284                
285            }
286        );
287        $this->registerSingleton(
288            'cms.layout.ugly_design_system',
289            function ($app) {
290                return \Apie\CmsLayoutUgly\UglyDesignSystemLayout::createRenderer(
291                
292                );
293                
294            }
295        );
296        
297    }
298}