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

Documentation about env var substitution in Bolt config is not correct #1211

Open
simongroenewolt opened this issue Oct 31, 2021 · 0 comments

Comments

@simongroenewolt
Copy link
Contributor

As far as I can see https://docs.boltcms.io/5.0/configuration/introduction#dynamic-values-for-config-settings suggests non-existing functionality -- I've seen 2 questions about it on slack recently.

I'd suggest at least removing the part that speaks about usage in pages via twig from the docs, and maybe even the whole paragraph.

As far as I can see (by looking at Kernel.php) it might be possible to access a setting defined in config.yml from inside the symfony container using bolt.<your_var_name> if you are using $container->getParamter(), but the use of $config in code or twig is the Bolt config, and that one doesn't support env var substitution.

@simongroenewolt simongroenewolt changed the title Remove documentation about env var substitution in Bolt config. Documentation about env var substitution in Bolt config is not correct Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant