From 8483ebf25ff30c3ed746bb6e7ec9e56fb9751c0a Mon Sep 17 00:00:00 2001
From: Philipp Scheit
Date: Wed, 9 Oct 2013 10:44:03 +0200
Subject: [PATCH] hack Console #4
---
lib/Psc/System/Console/Console.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Psc/System/Console/Console.php b/lib/Psc/System/Console/Console.php
index 2e7e506..8bdaf17 100644
--- a/lib/Psc/System/Console/Console.php
+++ b/lib/Psc/System/Console/Console.php
@@ -23,14 +23,14 @@ class Console extends \Psc\Object {
public function __construct(Application $application = NULL, \Psc\Doctrine\Module $doctrine = NULL, \Psc\CMS\Project $project = NULL) {
$this->name = 'Psc Command Line Interface';
- $this->version = (string) \Psc\PSC::getVersion();
+ $this->version = NULL;
$this->cli = $application ?: new Application($this->name, $this->version);
$this->cli->setCatchExceptions(true);
$this->cli->setHelperSet(new HelperSet(array(
'dialog' => new \Symfony\Component\Console\Helper\DialogHelper()
)));
$this->project = $project ?: \Psc\PSC::getProject();
- $this->doctrine = $this->project->getModule('Doctrine');
+ $this->doctrine = $doctrine ?: $GLOBALS['env']['container']->getModule('Doctrine');
$this->setUp();
}