Check for option verbose instead of get it.

This avoid crashing when called by daemonise command.
This commit is contained in:
Raul Ferriz 2014-01-04 10:17:24 +01:00
commit 8bc043065a

View file

@ -68,7 +68,7 @@ class RunCommand extends Command
// For verbose mode we want to output all informational and above
// messages to the symphony output interface.
if ($input->getOption('verbose')) {
if ($input->hasOption('verbose')) {
$this->logger->pushHandler(
new OutputLogHandler($this->output, Logger::INFO)
);