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

Document cached config behavior #7

Open
kpicaza opened this issue Jan 18, 2021 · 0 comments
Open

Document cached config behavior #7

kpicaza opened this issue Jan 18, 2021 · 0 comments
Assignees
Labels
Docs Add or update documentation

Comments

@kpicaza
Copy link
Member

kpicaza commented Jan 18, 2021

Is your feature request related to a problem? Please describe.

Current documentation does not remark the behavior of the cached config, this file is auto-generated in the first request if not exist, then it will be loaded from the filesystem instead of parsing again entire configs set.

This behavior generates confusion on development because if you add a new dependency via config the framework should no be able to load it until the cached config is regenerated.

To avoid this issue we use the development mode, this consist of avoiding to generate cached config file and regenerating every config on each request, to activate it the developer can use the dev-tool command bin/console config:development-mode or manually deleting cached config files and copying the config/services/*.dev.{php,yaml}.dist to the same path but without .dist` extension.

@kpicaza kpicaza added the Docs Add or update documentation label Jan 18, 2021
@kpicaza kpicaza self-assigned this Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Add or update documentation
Projects
None yet
Development

No branches or pull requests

1 participant