cli-config.php 361 B

123456789101112131415
  1. <?php
  2. declare(strict_types = 1);
  3. require_once 'bootstrap.php';
  4. use App\Kernel;
  5. use Doctrine\ORM\Tools\Console\ConsoleRunner;
  6. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  7. $kernel->boot();
  8. $entityManager = $kernel->getContainer()->get('doctrine.orm.default_entity_manager');
  9. return ConsoleRunner::createHelperSet($entityManager);