Skip to content

[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

Merged
merged 2 commits into from
Jul 31, 2020
Merged

[Console] added info method to symfony style #37415

merged 2 commits into from
Jul 31, 2020

Conversation

titomiguelcosta
Copy link
Contributor

@titomiguelcosta titomiguelcosta commented Jun 25, 2020

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

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)

@nicolas-grekas nicolas-grekas added this to the next milestone Jun 28, 2020
@@ -163,6 +163,14 @@ public function note($message)
$this->block($message, 'NOTE', 'fg=yellow', ' ! ');
}

/**
* {@inheritdoc}
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabpot
Copy link
Member

fabpot commented Jul 31, 2020

Thank you @titomiguelcosta.

@fabpot fabpot merged commit 7aaf99d into symfony:master Jul 31, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants