diff --git a/app/server/server.php b/app/server/server.php index 94e409e..5d909cf 100644 --- a/app/server/server.php +++ b/app/server/server.php @@ -9,10 +9,7 @@ use Psr\Http\Message\ServerRequestInterface as Request; $app = Bootstrap::init(); -$http = new HttpServer(function (Request $request) use ($app) { - return $app->handle($request); -}); - +$http = new HttpServer(fn (Request $request) => $app->handle($request)); $address = "127.0.0.1:8000"; $socket = new SocketServer($address); $http->listen($socket);