Skip to content

[FrameworkBundle] Always dump the container as XML #41457

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 1 commit into from

Conversation

nicolas-grekas
Copy link
Member

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

Dumping the container as XML in prod too prevents compiling it twice on cache:warmup, when eg ConfigBuilderCacheWarmer runs, or when debug:container or debug:router run.

@nicolas-grekas nicolas-grekas added this to the 5.3 milestone May 31, 2021
@carsonbot carsonbot changed the title [FrameworkBundle] Always dump the container as XML Always dump the container as XML May 31, 2021
@carsonbot carsonbot changed the title Always dump the container as XML [FrameworkBundle] Always dump the container as XML May 31, 2021
@nicolas-grekas
Copy link
Member Author

Closing as that's not required to prevent ConfigBuilderCacheWarmer from compiling twice.

@nicolas-grekas nicolas-grekas deleted the always-dump branch May 31, 2021 10:02
@Nyholm
Copy link
Member

Nyholm commented May 31, 2021

Could you elaborate? With this PR, Kernel::buildContainer() is only called once on bin/console cache:clear.

@nicolas-grekas
Copy link
Member Author

See #41458

@nicolas-grekas
Copy link
Member Author

Note that we could decide to reopen this PR and merge it in 5.4, but that'd need a dedicated discussion.
#41458 fixes the root issue I was hunting.

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.

4 participants