Skip to content

Commit 8fd0fda

Browse files
committed
Do not compile special DI container for workers
1 parent 0ea862f commit 8fd0fda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/DependencyInjection/Configurator.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use function in_array;
2020
use function is_dir;
2121
use function is_file;
22+
use function ksort;
2223
use function restore_error_handler;
2324
use function set_error_handler;
2425
use function sha1_file;
@@ -81,10 +82,15 @@ public function loadContainer(): string
8182

8283
$attributesPhp = __DIR__ . '/../../vendor/attributes.php';
8384

85+
$staticParameters = $this->staticParameters;
86+
ksort($staticParameters['env']);
87+
unset($staticParameters['env']['_']);
88+
unset($staticParameters['env']['SHLVL']);
89+
8490
$className = $loader->load(
8591
[$this, 'generateContainer'],
8692
[
87-
$this->staticParameters,
93+
$staticParameters,
8894
array_keys($this->dynamicParameters),
8995
$this->configs,
9096
PHP_VERSION_ID - PHP_RELEASE_VERSION,

0 commit comments

Comments
 (0)