We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cce0757 + b2eb2f5 commit 5b1f650Copy full SHA for 5b1f650
src/HandlerResolver.php
@@ -108,12 +108,10 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
108
));
109
}
110
111
- $projectDir = getenv('LAMBDA_TASK_ROOT') ?: null;
112
-
113
// Use the Symfony Runtime component to resolve the closure and get the PSR-11 container
114
$options = $_SERVER['APP_RUNTIME_OPTIONS'] ?? [];
115
- if ($projectDir) {
116
- $options['project_dir'] = $projectDir;
+ if (! isset($options['project_dir'])) {
+ $options['project_dir'] = dirname(__DIR__, 4);
117
118
119
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? BrefRuntime::class;
0 commit comments