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