2016-04-17 13:27:24 -05:00
|
|
|
<?php
|
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;
|
|
|
|
use Interop\Container\ContainerInterface;
|
2017-10-23 04:20:55 -05:00
|
|
|
use Zend\ServiceManager\ServiceManager;
|
2016-04-17 13:27:24 -05:00
|
|
|
|
2017-10-23 04:20:55 -05:00
|
|
|
/** @var ContainerInterface|ServiceManager $container */
|
2019-01-26 02:42:01 -06:00
|
|
|
$container = include __DIR__ . '/container.php';
|
2016-04-17 13:27:24 -05:00
|
|
|
$em = $container->get(EntityManager::class);
|
|
|
|
|
|
|
|
return ConsoleRunner::createHelperSet($em);
|