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