17 lines
419 B
PHP
17 lines
419 B
PHP
|
|
<?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);
|
||
|
|
}
|
||
|
|
}
|