Closed
Description
There is no simply way I see with Symfony's Console components to only write if --verbose
is set. I have had to do a heap of if ($this->verbosity() > 1)
to get the effect myself. So I propose you add a second variable to your wrapper methods in Console\Command
... as in info($string)
, error($string)
etc. Simply add an optional second variable to only output if a certain verbosity is set.
I have already done it on an App I am making that uses your console component.
https://github.com/bigelephant/xf-console/blob/master/src/BigElephant/XfConsole/Command.php
Metadata
Metadata
Assignees
Labels
No labels