2018-05-09 15:16:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Service;
|
|
|
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManager;
|
2018-05-11 10:46:00 +02:00
|
|
|
use DoctrineExpressiveModule\Hydrator\DoctrineObject;
|
2018-05-09 15:16:00 +02:00
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
|
|
class JudgeManagerFactory
|
|
|
|
|
{
|
|
|
|
|
public function __invoke(ContainerInterface $container): JudgeManager
|
|
|
|
|
{
|
|
|
|
|
$entityManager = $container->get(EntityManager::class);
|
2018-05-11 10:46:00 +02:00
|
|
|
$hydrator = $container->get(DoctrineObject::class);
|
|
|
|
|
return new JudgeManager($entityManager, $hydrator);
|
2018-05-09 15:16:00 +02:00
|
|
|
}
|
|
|
|
|
}
|