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