You've already forked Php-Template
tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user