Skip to content

Commit

Permalink
fix no static-files config error
Browse files Browse the repository at this point in the history
  • Loading branch information
millken committed Sep 15, 2018
1 parent 31fa861 commit 3f8b4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Factory/SwooleApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function build(ContainerInterface $container)

$routes = new CallbackCollection($container->get('routes'), $routeCallback);
$app = new SwooleApplication(
$container->get('static-files'),
$container->has('static-files') ? $container->get('static-files') : [],
$routes,
$container->has(RequestHandlerInterface::class) ?
$container->get(RequestHandlerInterface::class) : null,
Expand Down

0 comments on commit 3f8b4eb

Please sign in to comment.