|
@@ 123-131 (lines=9) @@
|
| 120 |
|
* |
| 121 |
|
* @return AppCommands\Cache\ClearCommand |
| 122 |
|
*/ |
| 123 |
|
public function getCacheClearCommandService(Container $container) : AppCommands\Cache\ClearCommand |
| 124 |
|
{ |
| 125 |
|
$command = new AppCommands\Cache\ClearCommand($container->get(CacheItemPoolInterface::class)); |
| 126 |
|
|
| 127 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 128 |
|
$command->setInput($container->get(Input::class)); |
| 129 |
|
|
| 130 |
|
return $command; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
/** |
| 134 |
|
* Get the CLI application service |
|
@@ 245-253 (lines=9) @@
|
| 242 |
|
* |
| 243 |
|
* @return AppCommands\Database\StatusCommand |
| 244 |
|
*/ |
| 245 |
|
public function getDatabaseStatusCommandService(Container $container) : AppCommands\Database\StatusCommand |
| 246 |
|
{ |
| 247 |
|
$command = new AppCommands\Database\StatusCommand($container->get(Migrations::class)); |
| 248 |
|
|
| 249 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 250 |
|
$command->setInput($container->get(Input::class)); |
| 251 |
|
|
| 252 |
|
return $command; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
/** |
| 256 |
|
* Get the DisplayControllerCreate class service |
|
@@ 279-290 (lines=12) @@
|
| 276 |
|
* |
| 277 |
|
* @return DisplayControllerGet |
| 278 |
|
*/ |
| 279 |
|
public function getDisplayControllerGetService(Container $container) : DisplayControllerGet |
| 280 |
|
{ |
| 281 |
|
$controller = new DisplayControllerGet( |
| 282 |
|
$container->get(StatsJsonView::class), |
| 283 |
|
$container->get(CacheItemPoolInterface::class) |
| 284 |
|
); |
| 285 |
|
|
| 286 |
|
$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 287 |
|
$controller->setInput($container->get(Input::class)); |
| 288 |
|
|
| 289 |
|
return $controller; |
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
/** |
| 293 |
|
* Get the HelpCommand class service |
|
@@ 340-348 (lines=9) @@
|
| 337 |
|
* |
| 338 |
|
* @return AppCommands\InstallCommand |
| 339 |
|
*/ |
| 340 |
|
public function getInstallCommandService(Container $container) : AppCommands\InstallCommand |
| 341 |
|
{ |
| 342 |
|
$command = new AppCommands\InstallCommand($container->get(DatabaseDriver::class)); |
| 343 |
|
|
| 344 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 345 |
|
$command->setInput($container->get(Input::class)); |
| 346 |
|
|
| 347 |
|
return $command; |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
/** |
| 351 |
|
* Get the router service |
|
@@ 377-385 (lines=9) @@
|
| 374 |
|
* |
| 375 |
|
* @return AppCommands\SnapshotCommand |
| 376 |
|
*/ |
| 377 |
|
public function getSnapshotCommandService(Container $container) : AppCommands\SnapshotCommand |
| 378 |
|
{ |
| 379 |
|
$command = new AppCommands\SnapshotCommand($container->get(StatsJsonView::class)); |
| 380 |
|
|
| 381 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 382 |
|
$command->setInput($container->get(Input::class)); |
| 383 |
|
|
| 384 |
|
return $command; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
/** |
| 388 |
|
* Get the StatsJsonView class service |
|
@@ 422-432 (lines=11) @@
|
| 419 |
|
* |
| 420 |
|
* @return SubmitControllerCreate |
| 421 |
|
*/ |
| 422 |
|
public function getSubmitControllerCreateService(Container $container) : SubmitControllerCreate |
| 423 |
|
{ |
| 424 |
|
$controller = new SubmitControllerCreate( |
| 425 |
|
$container->get(StatsModel::class) |
| 426 |
|
); |
| 427 |
|
|
| 428 |
|
$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 429 |
|
$controller->setInput($container->get(Input::class)); |
| 430 |
|
|
| 431 |
|
return $controller; |
| 432 |
|
} |
| 433 |
|
|
| 434 |
|
/** |
| 435 |
|
* Get the SubmitControllerGet class service |
|
@@ 458-466 (lines=9) @@
|
| 455 |
|
* |
| 456 |
|
* @return AppCommands\Tags\JoomlaCommand |
| 457 |
|
*/ |
| 458 |
|
public function getTagsJoomlaCommandService(Container $container) : AppCommands\Tags\JoomlaCommand |
| 459 |
|
{ |
| 460 |
|
$command = new AppCommands\Tags\JoomlaCommand($container->get(GitHub::class)); |
| 461 |
|
|
| 462 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 463 |
|
$command->setInput($container->get(Input::class)); |
| 464 |
|
|
| 465 |
|
return $command; |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
/** |
| 469 |
|
* Get the Tags\PhpCommand class service |
|
@@ 475-483 (lines=9) @@
|
| 472 |
|
* |
| 473 |
|
* @return AppCommands\Tags\PhpCommand |
| 474 |
|
*/ |
| 475 |
|
public function getTagsPhpCommandService(Container $container) : AppCommands\Tags\PhpCommand |
| 476 |
|
{ |
| 477 |
|
$command = new AppCommands\Tags\PhpCommand($container->get(GitHub::class)); |
| 478 |
|
|
| 479 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 480 |
|
$command->setInput($container->get(Input::class)); |
| 481 |
|
|
| 482 |
|
return $command; |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
/** |
| 486 |
|
* Get the UpdateCommand class service |