* kanban service and stuff

This commit is contained in:
Dávid Danyi
2018-04-21 15:23:06 +02:00
parent b0295227bc
commit a43b5e9d09
25 changed files with 2071 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Service;
use Interop\Container\ContainerInterface;
use Zend\Config\Config;
use Zend\Http\Client;
class AvatarServiceFactory
{
public function __invoke(ContainerInterface $container)
{
$httpClient = $container->get(Client::class);
$cache = $container->get('service.cache');
$configArray = $container->get('config');
$config = new Config($configArray['app.config']);
return new AvatarService($httpClient, $config, $cache);
}
}