Skip to content

Commit 2590032

Browse files
Merge branch '5.3' into 5.4
* 5.3: [Runtime] Consider also $_ENV when resolving APP_RUNTIME and APP_RUNTIME_OPTIONS [Config] Fix signature generation with nested attributes on PHP 8.1 [Cache] allow/provide psr/simple-cache v2 [Validator] Add missing translations for Slovenian (sl) Add missing translations for Bosnian (bs) Bump Symfony version to 4.4.34 Update VERSION for 4.4.33 Update CONTRIBUTORS for 4.4.33 Update CHANGELOG for 4.4.33
2 parents 6f1c37c + 29c2073 commit 2590032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Internal/autoload_runtime.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if (!is_object($app)) {
1818
throw new TypeError(sprintf('Invalid return value: callable object expected, "%s" returned from "%s".', get_debug_type($app), $_SERVER['SCRIPT_FILENAME']));
1919
}
2020

21-
$runtime = $_SERVER['APP_RUNTIME'] ?? %runtime_class%;
22-
$runtime = new $runtime(($_SERVER['APP_RUNTIME_OPTIONS'] ?? []) + %runtime_options%);
21+
$runtime = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? %runtime_class%;
22+
$runtime = new $runtime(($_SERVER['APP_RUNTIME_OPTIONS'] ?? $_ENV['APP_RUNTIME_OPTIONS'] ?? []) + %runtime_options%);
2323

2424
[$app, $args] = $runtime
2525
->getResolver($app)

0 commit comments

Comments
 (0)