We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9953e0 commit ea20363Copy full SHA for ea20363
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(new \FrameworkX\Container($app), ...(array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [$app->get('reactphp.route')])));
+ return new App(...array_merge(array_filter($app['config']->get('reactphp.middlewares', [])), [new \FrameworkX\Container($app), $app->get('reactphp.route')]));
64
});
65
}
66
0 commit comments