From 26061f8384cf603463093392163d682a17f1d478 Mon Sep 17 00:00:00 2001 From: "Bueno, Feliphe" Date: Tue, 7 Mar 2017 11:07:12 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20na=20tipagem=20dos=20valor?= =?UTF-8?q?es=20de=20resposta=20padr=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bueno, Feliphe --- src/Core/ControllerAbstract.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/ControllerAbstract.php b/src/Core/ControllerAbstract.php index 53b6180..f0eac4d 100644 --- a/src/Core/ControllerAbstract.php +++ b/src/Core/ControllerAbstract.php @@ -41,7 +41,7 @@ public function jsonSuccess($message = '', $status = 200) { return $this->getTwig()->loader()->render('json_encode.twig', [ "data" => [ - 'success' => 'true', + 'success' => true, 'status' => $status, 'message' => $message ] @@ -52,7 +52,7 @@ public function jsonError($error, $status = 500) { return $this->getTwig()->loader()->render('json_encode.twig', [ "data" => [ - 'success' => 'false', + 'success' => false, 'status' => $status, 'message' => $error ]