Use verbosity to hide some errors

This commit is contained in:
Barry vd. Heuvel
2015-06-18 09:11:05 +02:00
parent 541b9508e2
commit 8515b7ac0b
2 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -12,6 +12,7 @@ namespace Barryvdh\LaravelIdeHelper\Console;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
* A command to generate phpstorm meta data
@@ -78,7 +79,9 @@ class MetaCommand extends Command {
$bindings[$abstract] = get_class($concrete);
}
}catch (\Exception $e) {
$this->comment("Cannot make '$abstract': ".$e->getMessage());
if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
$this->comment("Cannot make '$abstract': ".$e->getMessage());
}
}
}