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] Dump kernel extension configuration #36186

Conversation

guillbdx
Copy link

@guillbdx guillbdx commented Mar 24, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets #34756
License MIT

If the kernel is a container extension and defines a configuration, the config:dump-reference will now be able to dump it.

@guillbdx guillbdx changed the title Fwb dump kernel extension configuration [FrameworkBundle] dump kernel extension configuration Mar 24, 2020
@guillbdx guillbdx changed the title [FrameworkBundle] dump kernel extension configuration [FrameworkBundle] Dump kernel extension configuration Mar 24, 2020
@nicolas-grekas nicolas-grekas added this to the next milestone Mar 24, 2020
@nicolas-grekas nicolas-grekas force-pushed the fwb-dump-kernel-extension-configuration branch from 610bce7 to 2ccafb1 Compare March 31, 2020 18:59
@nicolas-grekas
Copy link
Member

Thank you @guillbdx.

@nicolas-grekas nicolas-grekas merged commit 0c74ff4 into symfony:master Mar 31, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@fabpot fabpot mentioned this pull request May 5, 2020
fabpot added a commit that referenced this pull request Sep 24, 2020
…eMC)

This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpKernel] Auto-register kernel as an extension

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

Symfony already supports having the kernel as an extension. This is evident by the fact that the [`config:dump-reference` and `debug:config`](#36186) commands check whether the kernel implements the `ExtensionInterface`. Nonetheless, it's still required to register the kernel manually as an extension.

With this PR the kernel will be automatically registered as an extension if it implements the `ExtensionInterface`. This is the same logic as when the kernel implements the `CompilerPassInterface`.

Commits
-------

9c34980 Auto-register kernel as an extension
symfony-splitter pushed a commit to symfony/http-kernel that referenced this pull request Sep 24, 2020
…eMC)

This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpKernel] Auto-register kernel as an extension

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

Symfony already supports having the kernel as an extension. This is evident by the fact that the [`config:dump-reference` and `debug:config`](symfony/symfony#36186) commands check whether the kernel implements the `ExtensionInterface`. Nonetheless, it's still required to register the kernel manually as an extension.

With this PR the kernel will be automatically registered as an extension if it implements the `ExtensionInterface`. This is the same logic as when the kernel implements the `CompilerPassInterface`.

Commits
-------

9c34980869 Auto-register kernel as an extension
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.

None yet

3 participants