forked from GNUsocial/gnu-social
[DOCTRINE] Configure cli-config for doctrine console and ensure DATABASE is set to UTF-8
This commit is contained in:
12
config/cli-config.php
Normal file
12
config/cli-config.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user