2020-03-18 10:51:10 +00:00
|
|
|
<?php
|
|
|
|
|
2021-10-10 09:26:18 +01:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2020-03-18 10:51:10 +00:00
|
|
|
require_once 'bootstrap.php';
|
|
|
|
|
|
|
|
use App\Kernel;
|
|
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
|
|
|
|
|
|
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
|
|
$kernel->boot();
|
|
|
|
$entityManager = $kernel->getContainer()->get('doctrine.orm.default_entity_manager');
|
|
|
|
|
|
|
|
return ConsoleRunner::createHelperSet($entityManager);
|