Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Runtime] Allow JSON for APP_RUNTIME_OPTIONS#45535
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedFeb 24, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This is not a bugfix ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What about making SymfonyRuntime's constructor accept array|json-string instead?
Not a good idea as that would prevent merging with options generated by the plugin!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ro0NL commentedFeb 24, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Are you saying APP_RUNTIME_OPTIONS is not a supported env var? but more like some internal global var? IMHO it looks like an env var extension point ... thus should support string values actually. Thus a bugfix :) Or how could i set an PHP array using env var? We're not at 6.1 yet, so as a feature i will postpone this PR. And we patch the front controller manually for the time being (maybe forever), if that's the intended feature-usage currently. |
So, tbe bugfix would be |
yes, that's been the intent so far, not reading from env. |
then, what about renaming it to |
I don't see why, better not to me 🤷 |
Can you add a test case? |
I'll continue this with our php8/sf6 upgrade 👍 |
Uh oh!
There was an error while loading.Please reload this page.
So we can export
APP_RUNTIME_OPTIONS='{"disable_dotenv":true}'in prod