-
-
Save docteurklein/5171196 to your computer and use it in GitHub Desktop.
php interactive CLI with symfony ready application $ ./app/cli
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 -ad auto_prepend_file=cli | |
<?php | |
set_time_limit(0); | |
require_once __DIR__.'/autoload.php'; | |
require_once __DIR__.'/AppKernel.php'; | |
Symfony\Component\Debug\Debug::enable(); | |
$kernel = new AppKernel('cli', true); | |
$kernel->boot(); | |
$c = $kernel->getContainer(); | |
$d = $c->get('doctrine'); | |
$em = $d->getManager(); |
Author
docteurklein
commented
Jan 9, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment