8000
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.
1 parent b979a9f commit 9488115Copy full SHA for 9488115
src/HandlerResolver.php
@@ -115,6 +115,10 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
115
}
116
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? '\\Bref\\SymfonyBridge\\Runtime\\BrefRuntime';
117
$runtime = new $runtimeClass($options);
118
+ if (!$runtime instanceof \Symfony\Component\Runtime\SymfonyRuntime) {
119
+ throw new \RuntimeException("The runtime class '$runtimeClass' must extend Symfony\Component\Runtime\SymfonyRuntime.");
120
+ }
121
+}
122
123
[$app, $args] = $runtime
124
->getResolver($app)
0 commit comments