This commit is contained in:
2025-04-25 20:59:13 -04:00
parent e84c7cf9ad
commit 60b758e995
14 changed files with 795 additions and 34 deletions

View File

@@ -25,7 +25,6 @@ use Spiral\RoadRunner\Worker;
*/
class Server
{
/**
* @var Router The router instance for handling routes.
*/
@@ -142,7 +141,7 @@ class Server
$response = $this->router->handle($request);
$this->worker->respond($response);
} catch (MethodNotAllowedException|NotFoundException) {
} catch (MethodNotAllowedException | NotFoundException) {
$this->worker->respond(
JsonResponseFactory::createJsonResponse(
['status_code' => 404, 'reason_phrase' => 'Not Found'],
@@ -167,4 +166,4 @@ class Server
}
}
}
}
}