-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HttpKernel] Add parameters kernel.runtime_mode and kernel.runtime_mode.*, all set from env var APP_RUNTIME_MODE #19067
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 about kernel.runtime_mode.web
here, what do you think to set kernel.runtime_mode.web
above cli ?
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
to
7f42182
Compare
…de.*, all set from env var APP_RUNTIME_MODE
7f42182
to
c3b6b2e
Compare
``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 from https://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
Thank you Alexandre. |
Fix #19066