Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Fix dumping extension config without bundle #46412

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 1 commit into from
May 21, 2022

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented May 19, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Either the debug:config or config:dump-reference commands allow to pass the bundle name or the extension alias as first argument. However, when we register an extension without a bundle (i.e. it's directly registered in the kernel class or the kernel class implements ExtensionInterface), these commands cannot dump the configuration related to this extension.

This PR fixes the issue, so both commands will look at the extensions list regardless of whether it belongs to a bundle.

@nicolas-grekas
Copy link
Member

Thank you @yceruto.

@nicolas-grekas nicolas-grekas merged commit 3db04f0 into symfony:4.4 May 21, 2022
@yceruto yceruto deleted the dump_extension_config branch May 21, 2022 13:12
@@ -59,7 +60,7 @@ protected function listBundles($output)
/**
* @return ExtensionInterface
*/
protected function findExtension($name)
protected function findExtension($name, ContainerBuilder $container)
Copy link
Member

Choose a reason for hiding this comment

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

that's a BC break

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad!

I don't remember, is it ok to add a new deprecation in a patch version?

Copy link
Member

Choose a reason for hiding this comment

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

We cannot do that in a patch release.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in #46434

fabpot added a commit that referenced this pull request May 22, 2022
… (yceruto)

This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] Fix BC break in abstract config commands

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Fixes #46412

This revert also the unnecessary changes made in ConfigDebugCommand and ConfigDumpReferenceCommand classes

Commits
-------

5be61fa Fix BC break
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