daily-ci-api/src/App/Command/UpdateCacheCommandFactory.php
2017-03-30 16:04:07 +02:00

17 lines
405 B
PHP

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