-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] added info method to symfony style #37415
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
Conversation
@@ -163,6 +163,14 @@ public function note($message) | |||
$this->block($message, 'NOTE', 'fg=yellow', ' ! '); | |||
} | |||
|
|||
/** | |||
* {@inheritdoc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no "info" method on StyleInterface
if we want to add one, this should be done in a BC manner, aka via an @method
annotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas I updated the docblock. I took the same approach that we did for the method comment (it is not part of the interface). What do you reckon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @javiereguiluz
Thank you @titomiguelcosta. |
It would be nice to have an info method as part of the SymfonyStyle class. This would prevent having to use the <INFO> tag, and it is consistent with other methods like warning and error (similar to the types available in monolog)