Commit 64e2b004 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-393] Fix doctrine-dbal command

parent c125e229
......@@ -5,7 +5,7 @@ require_once 'Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Symfony', 'Doctrine');
$classLoader = new \Doctrine\Common\ClassLoader('Symfony');
$classLoader->register();
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
......@@ -19,7 +19,7 @@ if (file_exists($configFile)) {
}
require $configFile;
foreach ($GLOBALS as $helperSetCandidate) {
if ($helperSetCandidate instanceof \Symfony\Component\Console\Helper\HelperSet) {
$helperSet = $helperSetCandidate;
......@@ -40,4 +40,4 @@ $cli->addCommands(array(
new \Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand(),
));
$cli->run();
\ No newline at end of file
$cli->run();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment