daily-ci-api/src/App/Command/UpdateNightlyCacheCommandFactory.php

17 lines
419 B
PHP
Raw Normal View History

<?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);
}
}