From cc995a1dac7d2572c4d3d3ec18590cf39daee25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0imon=C4=8Di=C4=8D?= <7016180+peter-si@users.noreply.github.com> Date: Fri, 29 Oct 2021 17:25:23 +0200 Subject: [PATCH] Take also $_ENV into consideration when resolving APP_RUNTIME and APP_RUNTIME_OPTIONS On docker apache containers to get env variable into $_SERVER other configuration steps are needed. This is unnecessary since they are already available in $_ENV. Or maybe we can use getenv()? I'm preparing a PR for it (will be done in a bit) --- components/runtime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/runtime.rst b/components/runtime.rst index e716ec6eb38..5a6e610e65c 100644 --- a/components/runtime.rst +++ b/components/runtime.rst @@ -87,7 +87,7 @@ which uses PHP's ``$_SERVER``, ``$_POST``, ``$_GET``, ``$_FILES`` and ``$_SESSION`` superglobals. You may also use a custom Runtime (e.g. to integrate with Swoole or AWS Lambda). -Use the ``APP_RUNTIME`` environment variable or by specifying the +Use the ``APP_RUNTIME`` environment variable (PHP's ``$_SERVER`` is used first, then ``$_ENV``) or by specifying the ``extra.runtime.class`` in ``composer.json`` to change the Runtime class: .. code-block:: json