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 |
2 | namespace Apie\Cms; |
3 | |
4 | use Apie\ServiceProviderGenerator\UseGeneratedMethods; |
5 | use Illuminate\Support\ServiceProvider; |
6 | |
7 | /** |
8 | * This file is generated with apie/service-provider-generator from file: cms.yaml |
9 | * @codeCoverageIgnore |
10 | */ |
11 | class CmsServiceProvider extends ServiceProvider |
12 | { |
13 | use UseGeneratedMethods; |
14 | |
15 | public function register() |
16 | { |
17 | $this->app->singleton( |
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->app->singleton( |
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->app->singleton( |
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->app->singleton( |
66 | \Apie\Cms\LayoutPicker::class, |
67 | function ($app) { |
68 | return new \Apie\Cms\LayoutPicker( |
69 | |
70 | ); |
71 | } |
72 | ); |
73 | $this->app->bind('apie.cms.dashboard_content', \Apie\Cms\EmptyDashboard::class); |
74 | |
75 | $this->app->singleton( |
76 | \Apie\Cms\EmptyDashboard::class, |
77 | function ($app) { |
78 | return new \Apie\Cms\EmptyDashboard( |
79 | |
80 | ); |
81 | } |
82 | ); |
83 | $this->app->singleton( |
84 | \Apie\Cms\Controllers\LastActionResultController::class, |
85 | function ($app) { |
86 | return new \Apie\Cms\Controllers\LastActionResultController( |
87 | $app->make(\Apie\HtmlBuilders\Factories\ComponentFactory::class), |
88 | $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class), |
89 | $app->make(\Apie\Cms\Services\ResponseFactory::class), |
90 | $app->make(\Apie\HtmlBuilders\Factories\FieldDisplayComponentFactory::class) |
91 | ); |
92 | } |
93 | ); |
94 | \Apie\ServiceProviderGenerator\TagMap::register( |
95 | $this->app, |
96 | \Apie\Cms\Controllers\LastActionResultController::class, |
97 | array( |
98 | 0 => 'controller.service_arguments', |
99 | ) |
100 | ); |
101 | $this->app->tag([\Apie\Cms\Controllers\LastActionResultController::class], 'controller.service_arguments'); |
102 | $this->app->singleton( |
103 | \Apie\Cms\Controllers\GetResourceController::class, |
104 | function ($app) { |
105 | return new \Apie\Cms\Controllers\GetResourceController( |
106 | $app->make(\Apie\Common\ApieFacade::class), |
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 | ); |
111 | } |
112 | ); |
113 | \Apie\ServiceProviderGenerator\TagMap::register( |
114 | $this->app, |
115 | \Apie\Cms\Controllers\GetResourceController::class, |
116 | array( |
117 | 0 => 'controller.service_arguments', |
118 | ) |
119 | ); |
120 | $this->app->tag([\Apie\Cms\Controllers\GetResourceController::class], 'controller.service_arguments'); |
121 | $this->app->singleton( |
122 | \Apie\Cms\Controllers\GetResourceListController::class, |
123 | function ($app) { |
124 | return new \Apie\Cms\Controllers\GetResourceListController( |
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\GetResourceListController::class, |
135 | array( |
136 | 0 => 'controller.service_arguments', |
137 | ) |
138 | ); |
139 | $this->app->tag([\Apie\Cms\Controllers\GetResourceListController::class], 'controller.service_arguments'); |
140 | $this->app->singleton( |
141 | \Apie\Cms\Controllers\RunGlobalMethodFormController::class, |
142 | function ($app) { |
143 | return new \Apie\Cms\Controllers\RunGlobalMethodFormController( |
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 | $app->make(\Apie\Cms\LayoutPicker::class) |
149 | ); |
150 | } |
151 | ); |
152 | \Apie\ServiceProviderGenerator\TagMap::register( |
153 | $this->app, |
154 | \Apie\Cms\Controllers\RunGlobalMethodFormController::class, |
155 | array( |
156 | 0 => 'controller.service_arguments', |
157 | ) |
158 | ); |
159 | $this->app->tag([\Apie\Cms\Controllers\RunGlobalMethodFormController::class], 'controller.service_arguments'); |
160 | $this->app->singleton( |
161 | \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class, |
162 | function ($app) { |
163 | return new \Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController( |
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\RunMethodCallOnSingleResourceFormController::class, |
175 | array( |
176 | 0 => 'controller.service_arguments', |
177 | ) |
178 | ); |
179 | $this->app->tag([\Apie\Cms\Controllers\RunMethodCallOnSingleResourceFormController::class], 'controller.service_arguments'); |
180 | $this->app->singleton( |
181 | \Apie\Cms\Controllers\CreateResourceFormController::class, |
182 | function ($app) { |
183 | return new \Apie\Cms\Controllers\CreateResourceFormController( |
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\CreateResourceFormController::class, |
195 | array( |
196 | 0 => 'controller.service_arguments', |
197 | ) |
198 | ); |
199 | $this->app->tag([\Apie\Cms\Controllers\CreateResourceFormController::class], 'controller.service_arguments'); |
200 | $this->app->singleton( |
201 | \Apie\Cms\Controllers\ModifyResourceFormController::class, |
202 | function ($app) { |
203 | return new \Apie\Cms\Controllers\ModifyResourceFormController( |
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\ModifyResourceFormController::class, |
215 | array( |
216 | 0 => 'controller.service_arguments', |
217 | ) |
218 | ); |
219 | $this->app->tag([\Apie\Cms\Controllers\ModifyResourceFormController::class], 'controller.service_arguments'); |
220 | $this->app->singleton( |
221 | \Apie\Cms\Controllers\RemoveResourceFormController::class, |
222 | function ($app) { |
223 | return new \Apie\Cms\Controllers\RemoveResourceFormController( |
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\RemoveResourceFormController::class, |
235 | array( |
236 | 0 => 'controller.service_arguments', |
237 | ) |
238 | ); |
239 | $this->app->tag([\Apie\Cms\Controllers\RemoveResourceFormController::class], 'controller.service_arguments'); |
240 | $this->app->singleton( |
241 | \Apie\Cms\Controllers\FormCommitController::class, |
242 | function ($app) { |
243 | return new \Apie\Cms\Controllers\FormCommitController( |
244 | $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class), |
245 | $app->make(\Apie\Common\ApieFacade::class), |
246 | $app->make(\Apie\HtmlBuilders\Configuration\ApplicationConfiguration::class), |
247 | $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class), |
248 | $app->make(\Apie\Cms\Services\ResponseFactory::class) |
249 | ); |
250 | } |
251 | ); |
252 | \Apie\ServiceProviderGenerator\TagMap::register( |
253 | $this->app, |
254 | \Apie\Cms\Controllers\FormCommitController::class, |
255 | array( |
256 | 0 => 'controller.service_arguments', |
257 | ) |
258 | ); |
259 | $this->app->tag([\Apie\Cms\Controllers\FormCommitController::class], 'controller.service_arguments'); |
260 | $this->app->singleton( |
261 | 'cms.layout.graphite_design_system', |
262 | function ($app) { |
263 | return \Apie\CmsLayoutGraphite\GraphiteDesignSystemLayout::createRenderer( |
264 | |
265 | ); |
266 | |
267 | } |
268 | ); |
269 | $this->app->singleton( |
270 | 'cms.layout.ionic_design_system', |
271 | function ($app) { |
272 | return \Apie\CmsLayoutIonic\IonicDesignSystemLayout::createRenderer( |
273 | |
274 | ); |
275 | |
276 | } |
277 | ); |
278 | $this->app->singleton( |
279 | 'cms.layout.ugly_design_system', |
280 | function ($app) { |
281 | return \Apie\CmsLayoutUgly\UglyDesignSystemLayout::createRenderer( |
282 | |
283 | ); |
284 | |
285 | } |
286 | ); |
287 | |
288 | } |
289 | } |