|
@@ 123-131 (lines=9) @@
|
| 120 |
|
* |
| 121 |
|
* @since 1.0 |
| 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 |
|
@@ 259-267 (lines=9) @@
|
| 256 |
|
* |
| 257 |
|
* @since 1.0 |
| 258 |
|
*/ |
| 259 |
|
public function getDatabaseStatusCommandService(Container $container) : AppCommands\Database\StatusCommand |
| 260 |
|
{ |
| 261 |
|
$command = new AppCommands\Database\StatusCommand($container->get(Migrations::class)); |
| 262 |
|
|
| 263 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 264 |
|
$command->setInput($container->get(Input::class)); |
| 265 |
|
|
| 266 |
|
return $command; |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
/** |
| 270 |
|
* Get the DisplayControllerGet class service |
|
@@ 278-289 (lines=12) @@
|
| 275 |
|
* |
| 276 |
|
* @since 1.0 |
| 277 |
|
*/ |
| 278 |
|
public function getDisplayControllerGetService(Container $container) : DisplayControllerGet |
| 279 |
|
{ |
| 280 |
|
$controller = new DisplayControllerGet( |
| 281 |
|
$container->get(StatsJsonView::class), |
| 282 |
|
$container->get(CacheItemPoolInterface::class) |
| 283 |
|
); |
| 284 |
|
|
| 285 |
|
$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 286 |
|
$controller->setInput($container->get(Input::class)); |
| 287 |
|
|
| 288 |
|
return $controller; |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
/** |
| 292 |
|
* Get the HelpCommand class service |
|
@@ 347-355 (lines=9) @@
|
| 344 |
|
* |
| 345 |
|
* @since 1.0 |
| 346 |
|
*/ |
| 347 |
|
public function getInstallCommandService(Container $container) : AppCommands\InstallCommand |
| 348 |
|
{ |
| 349 |
|
$command = new AppCommands\InstallCommand($container->get(DatabaseDriver::class)); |
| 350 |
|
|
| 351 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 352 |
|
$command->setInput($container->get(Input::class)); |
| 353 |
|
|
| 354 |
|
return $command; |
| 355 |
|
} |
| 356 |
|
|
| 357 |
|
/** |
| 358 |
|
* Get the router service |
|
@@ 388-396 (lines=9) @@
|
| 385 |
|
* |
| 386 |
|
* @since 1.0 |
| 387 |
|
*/ |
| 388 |
|
public function getSnapshotCommandService(Container $container) : AppCommands\SnapshotCommand |
| 389 |
|
{ |
| 390 |
|
$command = new AppCommands\SnapshotCommand($container->get(StatsJsonView::class)); |
| 391 |
|
|
| 392 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 393 |
|
$command->setInput($container->get(Input::class)); |
| 394 |
|
|
| 395 |
|
return $command; |
| 396 |
|
} |
| 397 |
|
|
| 398 |
|
/** |
| 399 |
|
* Get the StatsJsonView class service |
|
@@ 439-449 (lines=11) @@
|
| 436 |
|
* |
| 437 |
|
* @since 1.0 |
| 438 |
|
*/ |
| 439 |
|
public function getSubmitControllerCreateService(Container $container) : SubmitControllerCreate |
| 440 |
|
{ |
| 441 |
|
$controller = new SubmitControllerCreate( |
| 442 |
|
$container->get(StatsModel::class) |
| 443 |
|
); |
| 444 |
|
|
| 445 |
|
$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 446 |
|
$controller->setInput($container->get(Input::class)); |
| 447 |
|
|
| 448 |
|
return $controller; |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
/** |
| 452 |
|
* Get the SubmitControllerGet class service |
|
@@ 479-487 (lines=9) @@
|
| 476 |
|
* |
| 477 |
|
* @since 1.0 |
| 478 |
|
*/ |
| 479 |
|
public function getTagsJoomlaCommandService(Container $container) : AppCommands\Tags\JoomlaCommand |
| 480 |
|
{ |
| 481 |
|
$command = new AppCommands\Tags\JoomlaCommand($container->get(GitHub::class)); |
| 482 |
|
|
| 483 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 484 |
|
$command->setInput($container->get(Input::class)); |
| 485 |
|
|
| 486 |
|
return $command; |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
/** |
| 490 |
|
* Get the Tags\PhpCommand class service |
|
@@ 498-506 (lines=9) @@
|
| 495 |
|
* |
| 496 |
|
* @since 1.0 |
| 497 |
|
*/ |
| 498 |
|
public function getTagsPhpCommandService(Container $container) : AppCommands\Tags\PhpCommand |
| 499 |
|
{ |
| 500 |
|
$command = new AppCommands\Tags\PhpCommand($container->get(GitHub::class)); |
| 501 |
|
|
| 502 |
|
$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class)); |
| 503 |
|
$command->setInput($container->get(Input::class)); |
| 504 |
|
|
| 505 |
|
return $command; |
| 506 |
|
} |
| 507 |
|
|
| 508 |
|
/** |
| 509 |
|
* Get the UpdateCommand class service |