2016-04-17 21:27:24 +03:00
|
|
|
<?php
|
2019-10-05 18:26:10 +03:00
|
|
|
|
2017-10-12 11:13:20 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2016-04-17 21:27:24 +03:00
|
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
2019-08-12 19:59:02 +03:00
|
|
|
use Psr\Container\ContainerInterface;
|
2016-04-17 21:27:24 +03:00
|
|
|
|
2019-10-05 18:26:10 +03:00
|
|
|
return (function () {
|
2020-06-17 20:01:56 +03:00
|
|
|
/** @var ContainerInterface $container */
|
2019-10-05 18:26:10 +03:00
|
|
|
$container = include __DIR__ . '/container.php';
|
|
|
|
$em = $container->get(EntityManager::class);
|
2016-04-17 21:27:24 +03:00
|
|
|
|
2019-10-05 18:26:10 +03:00
|
|
|
return ConsoleRunner::createHelperSet($em);
|
|
|
|
})();
|