23 lines
486 B
PHP
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);
|
|
}
|
|
}
|