Skip to content

Commit

Permalink
Hide git errors if using composer global
Browse files Browse the repository at this point in the history
  • Loading branch information
kilrizzy committed Jul 19, 2017
1 parent 066621c commit d4c573e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions app/Commands/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,11 @@ class Setup extends Command
private $questionHelper;
private $inputInterface;
private $outputInterface;

private $config;

private $composerProject;

private $database;
private $domain;

private $interrogator;

private $installType;
private $systemUserName;
private $baseUserDirectory;
private $folder;

public function __construct($name = null, Config $config)
{
Expand Down Expand Up @@ -88,7 +79,11 @@ private function outputLogo(){
| | | | (_) | | | | | | __/ |_) | (_) | |_| |
|_| |_|\___/|_| |_| |_|\___|_.__/ \___/ \__, |
|___/ ');
$this->outputInterface->writeln('<comment>Version: '.ApplicationVersion::get().'</comment>');
if($this->config->getComposerGlobal()){
//TODO - output version by reading .composer's lock file
}else{
$this->outputInterface->writeln('<comment>Version: '.ApplicationVersion::get().'</comment>');
}
}

private function interrogate(){
Expand Down

0 comments on commit d4c573e

Please sign in to comment.