Skip to content

Commit

Permalink
hack Console #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Oct 9, 2013
1 parent 35b4a16 commit 8483ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Psc/System/Console/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8483ebf

Please sign in to comment.