Skip to content

docs: document environment variable config limitation#2379

Closed
Jonas Elfering (keulinho) wants to merge 2 commits into
mainfrom
codex/document-runtime-env-config-limits
Closed

docs: document environment variable config limitation#2379
Jonas Elfering (keulinho) wants to merge 2 commits into
mainfrom
codex/document-runtime-env-config-limits

Conversation

@keulinho

@keulinho Jonas Elfering (keulinho) commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • document how to display the complete Shopware configuration reference
  • explain why runtime environment variable placeholders cannot be used with positive-minimum configuration options
  • list all currently affected Shopware options

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • Any required dependent changes in downstream modules have already been merged and published.
  • This pull request is ready for review.

Notes

The affected option list is based on the positive minimum-value constraints in Shopware's current Configuration.php.

@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Jul 15, 2026

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: ccf615b
Preview: https://developer-documentation-8z2ymzoit-shopware-frontends.vercel.app
Workflow run: #4482

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread guides/hosting/configurations/index.md Outdated
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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't all configs affected, that have any validation? or is it really just the validation case of checking values bigger than zero? 🤔

@Isengo1989 Micha Hobert (Isengo1989) added the Improvement PR created to append/modify info in the existing article label Jul 16, 2026
@keulinho

Copy link
Copy Markdown
Contributor Author

closing as it is fixed in newer symfony version, it's fixed with newer symfony config versions here: symfony/symfony#64045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement PR created to append/modify info in the existing article

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants