From 8e90f1979bf30df0305598cb5b36f12cab302aaf Mon Sep 17 00:00:00 2001 From: Ryan Mahoney Date: Tue, 13 Dec 2016 16:48:05 -0500 Subject: [PATCH] more standard approach to handle input from post/put and router --- src/Service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service.php b/src/Service.php index cbb209b..a9b602b 100644 --- a/src/Service.php +++ b/src/Service.php @@ -385,8 +385,8 @@ public function run($method = false, $path = false, &$code = false) try { http_response_code(200); ob_start(); - array_unshift($route[2], $this->getJsonInput()); - $response = $this->execute($route[1], $route[2]); + $input = [$this->getJsonInput(), $route[2]]; + $response = $this->execute($route[1], $input); if ($response === false) { $output = false; } else {