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

17 lines
405 B
PHP
Raw Normal View History

<?php
namespace App\Command;
use App\Service\CiExecutorService;
use Interop\Container\ContainerInterface;
class UpdateCacheCommandFactory
{
public function __invoke(ContainerInterface $container)
{
/** @var CiExecutorService $ciExecutorService */
$ciExecutorService = $container->get(CiExecutorService::class);
return new UpdateCacheCommand($ciExecutorService);
}
}