8000 allow to use custom runtime by allan-simon · Pull Request #57 · brefphp/symfony-bridge · GitHub
[go: up one dir, main page]

Skip to content

allow to use custom runtime #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cs fix
  • Loading branch information
Nyholm committed Aug 27, 2024
commit 65ee2c6c73742171dbc17fdbb1c15ede878890c8
2 changes: 1 addition & 1 deletion src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter

$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? BrefRuntime::class;
$runtime = new $runtimeClass($options);
if (!$runtime instanceof SymfonyRuntime) {
if (! $runtime instanceof SymfonyRuntime) {
throw new \RuntimeException(sprintf('The runtime class "%s" must extend Symfony\Component\Runtime\SymfonyRuntime.', $runtimeClass));
}

Expand Down
Loading
0