Skip to content

[Console] New styles on commands #14172

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

Closed
wants to merge 3 commits into from
Closed

[Console] New styles on commands #14172

wants to merge 3 commits into from

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Apr 2, 2015

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR *#14057

Hi,
I was just checking the new Console style API, and for testing purpose I've changed the server:*/translations:* commands.

If it's ok (see #14138) checklist, I can continue working on those easy changes (while allowing me to learn more about Symfony's built in commands).

@94noni 94noni changed the title 14138 commands style [Console] New styles on commands Apr 2, 2015
if (false !== strpos($input->getFirstArgument(), ':d')) {
$output->writeln('<comment>The use of "translation:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:translation" instead.</comment>');
$output->note('The use of "translation:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:translation" instead.');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should use ->caution() for deprecations. After all, if you keep using this deprecated feature, sooner or later you'll loose it.

Copy link
Member

Choose a reason for hiding this comment

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

agreed

fabpot added a commit that referenced this pull request Apr 7, 2015
…s methods (ogizanagi)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[3.0][Console][OutputStyle] Implements verbosity levels methods

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A - Travis build for #14032
| License       | MIT

Implements the verbosity level methods from `OutputInterface` for the new `OutputStyle` abstract class in 3.0 branch.
Fixes Travis builds with `deps=high` env var for #14032 PR and future console style updates.

=========
Related to: #14032, #14057, #14138, #14132, #14172, ...

Commits
-------

a30f507 [Console] [OutputStyle] Implements verbosity methods
@fabpot
Copy link
Member

fabpot commented Sep 14, 2015

@94noni What's the status of this PR?

@94noni
Copy link
Contributor Author

94noni commented Sep 14, 2015

@fabpot This PR has not moved since the last commit
It was just for test and I proposed it like it was
I did not read the comments and changed rhe code related to them

@javiereguiluz
Copy link
Member

@94noni thanks for working on this. Sadly, since you created this pull request, the commands have changed a bit and this cannot be merged as it is. The updated version of the code is available in these two new pull requests:

@fabpot fabpot closed this Oct 1, 2015
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

Successfully merging this pull request may close these issues.

5 participants