mtas-tv-backend/src/App/Handler/AvatarHandlerFactory.php

23 lines
486 B
PHP
Raw Normal View History

2018-04-21 15:23:06 +02:00
<?php
declare(strict_types=1);
namespace App\Handler;
use App\Service\AvatarService;
use Interop\Container\ContainerInterface;
class AvatarHandlerFactory
{
/**
* @param ContainerInterface $container
* @return AvatarHandler
*/
public function __invoke(ContainerInterface $container)
{
/** @var AvatarService $avatarService */
$avatarService = $container->get(AvatarService::class);
return new AvatarHandler($avatarService);
}
}