* cli command support added
* nightly cache update cli command implemented
This commit is contained in:
16
src/App/Command/UpdateNightlyCacheCommandFactory.php
Normal file
16
src/App/Command/UpdateNightlyCacheCommandFactory.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Command;
|
||||
|
||||
use App\Service\CiExecutorService;
|
||||
use Interop\Container\ContainerInterface;
|
||||
|
||||
class UpdateNightlyCacheCommandFactory
|
||||
{
|
||||
public function __invoke(ContainerInterface $container)
|
||||
{
|
||||
/** @var CiExecutorService $ciExecutorService */
|
||||
$ciExecutorService = $container->get(CiExecutorService::class);
|
||||
return new UpdateNightlyCacheCommand($ciExecutorService);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user