Skip to content
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

Closed
robclancy opened this issue Jan 15, 2013 · 1 comment
Closed

[Proposal] Verbosity added to Console\Command wrappers #45

robclancy opened this issue Jan 15, 2013 · 1 comment

Comments

@robclancy
Copy link
Contributor

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

@taylorotwell
Copy link
Member

You can override the methods to achieve this if you want.

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants