cli-config.php 333 B

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