Skip to content

Commit d9953e0

Browse files
committed
container
1 parent 2aed23f commit d9953e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/ServerServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function registerRoute()
6060
protected function registerServer()
6161
{
6262
$this->app->singleton('reactphp.server', function ($app) {
63-
return new App(...(array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [$app->get('reactphp.route')])));
63+
return new App(new \FrameworkX\Container($app), ...(array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [$app->get('reactphp.route')])));
6464
});
6565
}
6666

0 commit comments

Comments
 (0)