From 1d049023268db80f78731833c6084832de6839a8 Mon Sep 17 00:00:00 2001 From: Chris Schuhmann Date: Sat, 17 Nov 2012 00:12:29 +0100 Subject: [PATCH] Fix sandbox cli In afd8ea9 $helpers became an instance of HelperSet and caused an "The helper "em" is not defined." exception. --- tools/sandbox/doctrine.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/sandbox/doctrine.php b/tools/sandbox/doctrine.php index fc3c96db4..9060e6f7b 100644 --- a/tools/sandbox/doctrine.php +++ b/tools/sandbox/doctrine.php @@ -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(),