-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
- Loading branch information
1 parent
08af4fa
commit 3653eb6
Showing
2 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* Register the core Laravel paths | ||
*/ | ||
require 'paths.php'; | ||
|
||
/** | ||
* Bootstrap the Laravel framework | ||
*/ | ||
require path('sys').'core.php'; | ||
|
||
/** | ||
* Fire up the doctrine bundle | ||
*/ | ||
Laravel\Bundle::start('doctrine'); | ||
|
||
use Doctrine\ORM\Tools\Console\ConsoleRunner, | ||
Symfony\Component\Console\Helper\HelperSet, | ||
Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper, | ||
Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; | ||
|
||
/** | ||
* Resolve the entity manager instance out of the IoC container | ||
*/ | ||
$em = Laravel\IoC::resolve('doctrine::manager'); | ||
|
||
/** | ||
* Create the console helper-set and fire up the Doctrine console | ||
*/ | ||
$helperSet = new HelperSet(array( | ||
'db' => new ConnectionHelper($em->getConnection()), | ||
'em' => new EntityManagerHelper($em) | ||
)); | ||
|
||
ConsoleRunner::run($helperSet); |
This file was deleted.
Oops, something went wrong.