From 8f1ae6fc94a31a53a6d2669ffea915b4c61deb4b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 27 Jun 2017 00:21:49 +0200 Subject: [PATCH] RestApi: remove useless code This is handled in the controller --- library/Director/Web/Controller/Extension/RestApi.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/Director/Web/Controller/Extension/RestApi.php b/library/Director/Web/Controller/Extension/RestApi.php index 89e75d6f..1c15cc9f 100644 --- a/library/Director/Web/Controller/Extension/RestApi.php +++ b/library/Director/Web/Controller/Extension/RestApi.php @@ -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"; }