* kanban service and stuff
This commit is contained in:
21
src/App/Service/AvatarServiceFactory.php
Normal file
21
src/App/Service/AvatarServiceFactory.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user