docs: document environment variable config limitation#2379
docs: document environment variable config limitation#2379Jonas Elfering (keulinho) wants to merge 2 commits into
Conversation
Developer Docs healthcheckStatus: Completed with |
There was a problem hiding this comment.
Pull request overview
This PR updates the Shopware hosting configuration guide to document a Symfony/Shopware limitation where %env(...)% runtime placeholders cannot be used for certain Shopware configuration options that enforce a positive minimum during container compilation.
Changes:
- Add a command (
bin/console config:dump-reference shopware) to display the full Shopware configuration reference for the installed version. - Document why runtime
%env(int:...)%placeholders fail for positive-minimum constrained config nodes. - Provide a list of configuration keys currently impacted by this limitation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
|
||
| ## Runtime environment variables | ||
|
|
||
| Symfony environment variable placeholders, such as `%env(int:CART_EXPIRE_DAYS)%`, are resolved at runtime. They cannot be used for Shopware configuration options that enforce a positive minimum value while the service container is compiled. Symfony validates these options against an integer placeholder value of `0`, which fails the minimum-value constraint. |
There was a problem hiding this comment.
aren't all configs affected, that have any validation? or is it really just the validation case of checking values bigger than zero? 🤔
|
closing as it is fixed in newer symfony version, it's fixed with newer symfony config versions here: symfony/symfony#64045 |
Summary
Related links
Checklist
PageRefreferences where relevant..gitbook.yamlif pages were moved, renamed, or deleted..wordlist.txt(and sorted it) if spellcheck flags new legitimate terms.Notes
The affected option list is based on the positive minimum-value constraints in Shopware's current
Configuration.php.