-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] Verbosity added to Console\Command wrappers #45
Comments
You can override the methods to achieve this if you want. |
This was referenced Dec 7, 2016
gonzalom
pushed a commit
to Hydrane/tmp-laravel-framework
that referenced
this issue
Oct 12, 2023
Register facades for command, useful for migration commands.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ofif ($this->verbosity() > 1)
to get the effect myself. So I propose you add a second variable to your wrapper methods inConsole\Command
... as ininfo($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
The text was updated successfully, but these errors were encountered: