Fix responses returned by JSON helper.

This commit is contained in:
Franz Liedke 2015-06-03 02:02:28 +02:00
parent 83a5ba5001
commit 00699b69da

View File

@ -43,7 +43,10 @@ abstract class JsonApiAction implements ActionInterface
$data = json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT);
return new Response($data, $status);
$response = new Response('php://memory', $status);
$response->getBody()->write($data);
return $response;
}
/**