1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Fix sandbox cli

In afd8ea9 $helpers became an instance of HelperSet and caused an "The helper "em" is not defined." exception.
This commit is contained in:
Chris Schuhmann 2012-11-17 00:12:29 +01:00
parent 0782b8a682
commit 1d04902326

View File

@ -15,15 +15,14 @@ $classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
// Variable $helperSet is defined inside cli-config.php
require __DIR__ . '/cli-config.php';
$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);
$cli->setCatchExceptions(true);
$helperSet = $cli->getHelperSet();
foreach ($helpers as $name => $helper) {
$helperSet->set($helper, $name);
}
// Variable $helpers is defined inside cli-config.php
$cli->setHelperSet($helpers);
$cli->addCommands(array(
// DBAL Commands
new \Doctrine\DBAL\Tools\Console\Command\RunSqlCommand(),