Skip to content

Commit

Permalink
Update HandlerResolver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-simon authored Feb 13, 2022
1 parent 223f3e9 commit b979a9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Bref\Runtime\FileHandlerLocator;
use Bref\SymfonyBridge\Http\KernelAdapter;
use Bref\SymfonyBridge\Runtime\BrefRuntime;
use Exception;
use Psr\Container\ContainerInterface;
use Symfony\Component\HttpKernel\HttpKernelInterface;
Expand Down Expand Up @@ -114,7 +113,7 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
if ($projectDir) {
$options['project_dir'] = $projectDir;
}
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? 'BrefRuntime';
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? '\\Bref\\SymfonyBridge\\Runtime\\BrefRuntime';
$runtime = new $runtimeClass($options);

[$app, $args] = $runtime
Expand Down

0 comments on commit b979a9f

Please sign in to comment.