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