Skip to content

Commit

Permalink
allow to use custom runtime
Browse files Browse the repository at this point in the history
close #56
  • Loading branch information
allan-simon authored Feb 12, 2022
1 parent 4485405 commit 223f3e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
if ($projectDir) {
$options['project_dir'] = $projectDir;
}
$runtime = new BrefRuntime($options);
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? 'BrefRuntime';
$runtime = new $runtimeClass($options);

[$app, $args] = $runtime
->getResolver($app)
Expand Down

0 comments on commit 223f3e9

Please sign in to comment.