mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
minor #18976 [Security] Improve requires_channel var naming (mohamed)
This PR was merged into the 5.4 branch.
Discussion
----------
[Security] Improve `requires_channel` var naming
When dealing with this part of the doc, I found confusing having a env var named `SECURE_SCHEME`. Indeed, as stated in the same section, this env var could take the `http` value when in dev environment which could lead to some confusion. I suggest to improve the naming of this env var in order to clarify the example.
Commits
-------
5928e56c1 [Security] Improve `requires_channel` var naming
This commit is contained in:
@@ -74,8 +74,8 @@ access control:
|
||||
};
|
||||
|
||||
To make life easier while developing, you can also use an environment variable,
|
||||
like ``requires_channel: '%env(SECURE_SCHEME)%'``. In your ``.env`` file, set
|
||||
``SECURE_SCHEME`` to ``http`` by default, but override it to ``https`` on production.
|
||||
like ``requires_channel: '%env(REQUIRED_SCHEME)%'``. In your ``.env`` file, set
|
||||
``REQUIRED_SCHEME`` to ``http`` by default, but override it to ``https`` on production.
|
||||
|
||||
See :doc:`/security/access_control` for more details about ``access_control``
|
||||
in general.
|
||||
|
||||
Reference in New Issue
Block a user