mtas-tv-backend/src/App/Handler/AvatarHandlerFactory.php
2018-04-21 15:23:06 +02:00

23 lines
486 B
PHP

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