Refactoring
This commit is contained in:
parent
6aa5bdf20e
commit
7a46198d05
|
@ -13,7 +13,7 @@ require __DIR__.'/vendor/autoload.php';
|
|||
*
|
||||
* @param Response $response
|
||||
*/
|
||||
function send(Response $response)
|
||||
function sendResponse(Response $response)
|
||||
{
|
||||
http_response_code($response->getStatusCode());
|
||||
|
||||
|
@ -66,7 +66,7 @@ try {
|
|||
$apiResponse = $e->getResponse();
|
||||
}
|
||||
|
||||
send(new Response(
|
||||
sendResponse(new Response(
|
||||
$apiResponse->getBody(),
|
||||
$apiResponse->getStatusCode(),
|
||||
$apiResponse->getHeaders()
|
||||
|
|
Loading…
Reference in a new issue