@@ 184-192 (lines=9) @@ | ||
181 | ||
182 | $container->share( |
|
183 | SnapshotCommand::class, |
|
184 | function (Container $container) |
|
185 | { |
|
186 | $command = new SnapshotCommand($container->get(StatsJsonView::class)); |
|
187 | ||
188 | $command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
|
189 | $command->setInput($container->get(Input::class)); |
|
190 | ||
191 | return $command; |
|
192 | }, |
|
193 | true |
|
194 | ); |
|
195 | ||
@@ 213-221 (lines=9) @@ | ||
210 | ||
211 | $container->share( |
|
212 | StatusCommand::class, |
|
213 | function (Container $container) |
|
214 | { |
|
215 | $command = new StatusCommand($container->get(Migrations::class)); |
|
216 | ||
217 | $command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
|
218 | $command->setInput($container->get(Input::class)); |
|
219 | ||
220 | return $command; |
|
221 | }, |
|
222 | true |
|
223 | ); |
|
224 | ||
@@ 227-238 (lines=12) @@ | ||
224 | ||
225 | $container->share( |
|
226 | DisplayControllerGet::class, |
|
227 | function (Container $container) |
|
228 | { |
|
229 | $controller = new DisplayControllerGet( |
|
230 | $container->get(StatsJsonView::class), |
|
231 | $container->get(Cache::class) |
|
232 | ); |
|
233 | ||
234 | $controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
|
235 | $controller->setInput($container->get(Input::class)); |
|
236 | ||
237 | return $controller; |
|
238 | }, |
|
239 | true |
|
240 | ); |
|
241 | ||
@@ 244-254 (lines=11) @@ | ||
241 | ||
242 | $container->share( |
|
243 | SubmitControllerCreate::class, |
|
244 | function (Container $container) |
|
245 | { |
|
246 | $controller = new SubmitControllerCreate( |
|
247 | $container->get(StatsModel::class) |
|
248 | ); |
|
249 | ||
250 | $controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
|
251 | $controller->setInput($container->get(Input::class)); |
|
252 | ||
253 | return $controller; |
|
254 | }, |
|
255 | true |
|
256 | ); |
|
257 |