16 use Psr\Http\Message\ResponseInterface;
17 use Slim\Psr7\Factory\ResponseFactory;
30 string $reasonPhrase =
''
35 if ($reasonPhrase !==
'') {
36 $res = $res->withStatus($code, $reasonPhrase);
Override Slim response factory for custom response.
createResponse(int $code=200, string $reasonPhrase='')
Override Slim response for withJson function.