diff --git a/src/Api/ScoreControllerProvider.php b/src/Api/ScoreControllerProvider.php index a73ce56..1234279 100644 --- a/src/Api/ScoreControllerProvider.php +++ b/src/Api/ScoreControllerProvider.php @@ -60,6 +60,8 @@ class ScoreControllerProvider implements ControllerProviderInterface * Expects a full game + hits in the request */ $controllers->post('/games', function (Request $request, Application $app) { +error_reporting(E_ALL);ini_set('display_errors',1); + $data = json_decode($request->getContent(), true); $token = $app['security.token_storage']->getToken(); $user = $token->getUser(); @@ -132,4 +134,4 @@ class ScoreControllerProvider implements ControllerProviderInterface return $controllers; } -} \ No newline at end of file +}