Skip to content

Commit

Permalink
no full qualified class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kühn authored and Gianluca Arbezzano committed May 30, 2015
1 parent 39bfe45 commit 3a061b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DoctrineORMModule/Module.php
Expand Up @@ -19,6 +19,8 @@

namespace DoctrineORMModule;

use Symfony\Component\Console\Helper\DialogHelper;
use Symfony\Component\Console\Helper\QuestionHelper;
use Zend\ModuleManager\Feature\ControllerProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\ModuleManager\Feature\InitProviderInterface;
Expand Down Expand Up @@ -139,11 +141,11 @@ public function initializeConsole(EventInterface $event)
$helperSet = $cli->getHelperSet();

if (class_exists('Symfony\Component\Console\Helper\QuestionHelper')) {
$helperSet->set(new \Symfony\Component\Console\Helper\QuestionHelper(), 'question');
$helperSet->set(new QuestionHelper(), 'question');
}

if (class_exists('Symfony\Component\Console\Helper\DialogHelper')) {
$helperSet->set(new \Symfony\Component\Console\Helper\DialogHelper(), 'dialog');
$helperSet->set(new DialogHelper(), 'dialog');
}

$helperSet->set(new ConnectionHelper($entityManager->getConnection()), 'db');
Expand Down

0 comments on commit 3a061b1

Please sign in to comment.