* judge-year many to many implemented, no admin yet
* judge images renamed to use generated slug, may change in the future...
This commit is contained in:
17
src/App/Service/JudgeManagerFactory.php
Normal file
17
src/App/Service/JudgeManagerFactory.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
class JudgeManagerFactory
|
||||
{
|
||||
public function __invoke(ContainerInterface $container): JudgeManager
|
||||
{
|
||||
$entityManager = $container->get(EntityManager::class);
|
||||
return new JudgeManager($entityManager);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user