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