RestApi: remove useless code

This is handled in the controller
This commit is contained in:
Thomas Gelf 2017-06-27 00:21:49 +02:00
parent 2f79920a18
commit 8f1ae6fc94

View File

@ -34,10 +34,6 @@ trait RestApi
protected function sendJson(Response $response, $object)
{
$response->setHeader('Content-Type', 'application/json', true);
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
/** @var ServicetemplatesController $this */
$this->viewRenderer->disable();
echo json_encode($object, JSON_PRETTY_PRINT) . "\n";
}