Documentation about env var substitution in Bolt config is not correct
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- php
- Domain
- documentation
Research direction
Start with the dynamic-values-for-config-settings section on the linked Bolt 5.0 configuration page and compare its claims with the referenced src/Kernel.php implementation. Confirm which environment-variable behavior exists, then update the documentation so its Twig and configuration examples match the supported functionality.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 45
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bolt/docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Outdated Roadmap link in `https://docs.boltcms.io/other/contributing#step-2-rfc-moved-to-roadmap` Open
Difficulty 1/5 Under an hour Newbie friendliness 50/100
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·