* kanban service and stuff
This commit is contained in:
22
src/App/Handler/AvatarHandlerFactory.php
Normal file
22
src/App/Handler/AvatarHandlerFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user