taurus-api/src/App/Service/FunServiceFactory.php

20 lines
408 B
PHP

<?php
namespace App\Service;
use Interop\Container\ContainerInterface;
use Zend\Config\Config;
class FunServiceFactory
{
public function __invoke(ContainerInterface $container)
{
$appConfig = $container->get('config')['app.config'];
$cache = $container->get('service.cache');
return new FunService(
$cache,
new Config($appConfig)
);
}
}