Skip to content

[Config] Add command to dump ConfigBuilders #40803

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

Nyholm
Copy link
Member

@Nyholm Nyholm commented Apr 13, 2021

Q A
Branch? 5.x
Bug fix? yes/no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR

This will add a command config:dump-builders that you can force to dump ConfigBuilders.

We can discuss if this is needed if we have a cache warmer. Ie, then the ConfigBuilders will be generated on cache:warmup. See #40804

@Nyholm Nyholm force-pushed the php-config-builder-dump branch from 6b6ab01 to ec518e1 Compare April 13, 2021 17:16
@ro0NL
Copy link
Contributor

ro0NL commented Apr 13, 2021

cant we dump along when the container is dumped? Im not sure one should ever call this command 🤔

IIUC configuration classes are already resource tracked, thus reloaded on change.

@nicolas-grekas
Copy link
Member

Since we strive to reduce the list of default commands, I'm not sure we need this command. Cache warmers are enough to me.

@nicolas-grekas nicolas-grekas added this to the 5.x milestone Apr 13, 2021
@Nyholm
Copy link
Member Author

Nyholm commented Apr 13, 2021

Thank you both for your input. Im closing this PR in favour of #40804

@Nyholm Nyholm closed this Apr 13, 2021
nicolas-grekas added a commit that referenced this pull request Apr 14, 2021
…ilder (Nyholm)

This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Config][FrameworkBundle] Add CacheWarmer for ConfigBuilder

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

Make sure ConfigBuilder exists before you write your first line of config.

This is similar to #40803

Commits
-------

c1d6c0e [Config][FrameworkBundle] Add CacheWarmer for ConfigBuilder
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