17 lines
396 B
PHP
17 lines
396 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Service\User;
|
||
|
|
|
||
|
|
use Interop\Container\ContainerInterface;
|
||
|
|
|
||
|
|
class UserServiceFactory extends \App\Service\AbstractEntityServiceFactory
|
||
|
|
{
|
||
|
|
|
||
|
|
public function __invoke(ContainerInterface $container)
|
||
|
|
{
|
||
|
|
$em = $this->getEntityManager($container);
|
||
|
|
$hydrator = $this->getDoctrineHydrator($container);
|
||
|
|
return new userService($em, $hydrator);
|
||
|
|
}
|
||
|
|
}
|