Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[HttpKernel] Add parameters kernel.runtime_mode and kernel.runtime_mode.*, all set from env var APP_RUNTIME_MODE#19067
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
reference/configuration/kernel.rst Outdated
| **type**: ``boolean`` **default**: ``%env(not:default:kernel.runtime_mode.web:)%`` | ||
| Whether the application is running in a CLI environment. By default, | ||
| this value is the opposite of the ``kernel.runtime_mode.web`` parameter. |
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.
As we talk aboutkernel.runtime_mode.web here, what do you think to setkernel.runtime_mode.web abovecli ?
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.
I sorted alphabetically but I think putting web above cli makes more sense indeed!
6015205 to7f42182Compare…de.*, all set from env var APP_RUNTIME_MODE
7f42182 toc3b6b2eCompare| ``kernel.runtime_mode.web`` | ||
| --------------------------- | ||
| **type**: ``boolean`` **default**: ``%env(bool:default::key:web:default:kernel.runtime_mode:)%`` |
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.
| **type**: ``boolean`` **default**: ``%env(bool:default::key:web:default:kernel.runtime_mode:)%`` | |
| **type**: ``boolean`` **default**: ``%env(bool:default::key:web:default:kernel.runtime_mode??)%`` |
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.
Is this correct?
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.
I took this fromhttps://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/HttpKernel/Kernel.php#L574
This new syntax was introduced here if I am right:https://github.com/symfony/symfony/pull/52079/files#r1363574735
OskarStark commentedOct 24, 2023
Thank you Alexandre. |
Fix#19066