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

[FrameworkBundle] Applied new styles to the config:debug & config:dump-reference commands #14591

Merged
merged 1 commit into from
May 15, 2015
Merged

[FrameworkBundle] Applied new styles to the config:debug & config:dump-reference commands #14591

merged 1 commit into from
May 15, 2015

Conversation

ogizanagi
Copy link
Member

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

Min dependency on symfony/console is changed to ~2.7 in the FrameworkBundle, as it will be a requirement in order to update each command provided in this bundle.

@xabbuh
Copy link
Member

xabbuh commented May 12, 2015

@ogizanagi Can you please show before and after screenshots?

@ogizanagi
Copy link
Member Author

Sure. Here it is. (Only the table layout listing bundles and the deprecation note is changed)

screenshot 2015-05-12 a 21 56 18

if (class_exists('Symfony\Component\Console\Helper\Table')) {
$table->render();
$message = 'Available registered bundles with their extension alias if available:';
if ($output instanceof OutputStyle) {
Copy link
Member

Choose a reason for hiding this comment

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

What is this check for?

Copy link
Member Author

Choose a reason for hiding this comment

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

This method is typehinted OutputInterface. As it might eventually be used by other bundles, not using SymfonyStyle nor custom StyleInterface implementations, we need to do this check in order to choose the way we'll use in order to render the table.

Unless we judge other bundles should not extend this class, so we could typehint this method with the StyleInterface.

BTW, I don't remember why I used OutputStyle instead of StyleInterface :/

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented May 15, 2015

Thank you @ogizanagi.

@fabpot fabpot merged commit e56a619 into symfony:2.7 May 15, 2015
fabpot added a commit that referenced this pull request May 15, 2015
… & config:dump-reference commands (ogizanagi)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Applied new styles to the config:debug & config:dump-reference commands

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

Min dependency on `symfony/console` is changed to `~2.7` in the FrameworkBundle, as it will be a requirement in order to update each command provided in this bundle.

Commits
-------

e56a619 [FrameworkBundle] Applied new styles to the config:debug & config:dump-reference commands
@ogizanagi ogizanagi deleted the conf_dump_debug_style branch May 15, 2015 13:47
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.

5 participants