2018-11-11 12:01:18 +01:00
|
|
|
<?php
|
|
|
|
|
|
2018-11-12 07:09:32 +01:00
|
|
|
namespace App\Handler\User;
|
2018-11-11 12:01:18 +01:00
|
|
|
|
|
|
|
|
use App\Service\UserService;
|
|
|
|
|
use Interop\Container\ContainerInterface;
|
|
|
|
|
|
|
|
|
|
class UserFactory
|
|
|
|
|
{
|
|
|
|
|
public function __invoke(ContainerInterface $container)
|
|
|
|
|
{
|
|
|
|
|
/** @var UserService $userService */
|
|
|
|
|
$userService = $container->get(UserService::class);
|
2018-11-12 07:09:32 +01:00
|
|
|
return new UserHandler($userService);
|
2018-11-11 12:01:18 +01:00
|
|
|
}
|
|
|
|
|
}
|