We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea20363 commit 33cbd4fCopy full SHA for 33cbd4f
src/Providers/ServerServiceProvider.php
@@ -60,7 +60,7 @@ protected function registerRoute()
60
protected function registerServer()
61
{
62
$this->app->singleton('reactphp.server', function ($app) {
63
- return new App(...array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [new \FrameworkX\Container($app), $app->get('reactphp.route')]));
+ return new App(new \FrameworkX\Container($app), ...array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [$app->get('reactphp.route')]));
64
});
65
}
66
0 commit comments