Last active
August 15, 2016 16:38
-
-
Save mcfdn/bbcb5622800a92ade71c9416487e490b to your computer and use it in GitHub Desktop.
Doctrine ORM cli-config.php for Laravel 5.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/bootstrap/autoload.php'; | |
$app = require_once __DIR__ . '/bootstrap/app.php'; | |
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); | |
$kernel->handle(Illuminate\Http\Request::capture()); | |
$entityManager = $app->make(Doctrine\ORM\EntityManager::class); | |
return Doctrine\ORM\Tools\Console\ConsoleRunner\ConsoleRunner::createHelperSet($entityManager); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment