Merge pull request #515 from tranver/master
Fixes sandbox cli: The helper "em" is not defined.
This commit is contained in:
commit
072d8a8a13
@ -15,15 +15,14 @@ $classLoader->register();
|
|||||||
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
|
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
|
||||||
$classLoader->register();
|
$classLoader->register();
|
||||||
|
|
||||||
// Variable $helperSet is defined inside cli-config.php
|
|
||||||
require __DIR__ . '/cli-config.php';
|
require __DIR__ . '/cli-config.php';
|
||||||
|
|
||||||
$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);
|
$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);
|
||||||
$cli->setCatchExceptions(true);
|
$cli->setCatchExceptions(true);
|
||||||
$helperSet = $cli->getHelperSet();
|
|
||||||
foreach ($helpers as $name => $helper) {
|
// Variable $helpers is defined inside cli-config.php
|
||||||
$helperSet->set($helper, $name);
|
$cli->setHelperSet($helpers);
|
||||||
}
|
|
||||||
$cli->addCommands(array(
|
$cli->addCommands(array(
|
||||||
// DBAL Commands
|
// DBAL Commands
|
||||||
new \Doctrine\DBAL\Tools\Console\Command\RunSqlCommand(),
|
new \Doctrine\DBAL\Tools\Console\Command\RunSqlCommand(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user