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