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

[HttpKernel] Auto-register kernel as an extension #38243

Merged
merged 1 commit into from
Sep 24, 2020
Merged

[HttpKernel] Auto-register kernel as an extension #38243

merged 1 commit into from
Sep 24, 2020

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Sep 20, 2020

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 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.

@HypeMC HypeMC changed the title Auto-register kernel as extension [HttpKernel] Auto-register kernel as extension Sep 20, 2020
@HypeMC HypeMC changed the title [HttpKernel] Auto-register kernel as extension [HttpKernel] Auto-register kernel as an extension Sep 20, 2020
@yceruto yceruto added this to the next milestone Sep 20, 2020
@fabpot
Copy link
Member

fabpot commented Sep 24, 2020

Thank you @HypeMC.

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

5 participants