Skip to content
Snippets Groups Projects
Commit 06ac412f authored by Александр Плохих's avatar Александр Плохих :waxing_gibbous_moon:
Browse files

chenge array indexation

parent ac83168a
Branches PTPS|Controller_7
No related tags found
1 merge request!7make controller
......@@ -21,6 +21,6 @@ class DiffDaysController extends AbstractController
public function index(DiffDaysRequest $request, DiffDaysAction $action): Response
{
$array = $request->serialise();
return new JsonResponse($action->act($array[0], $array[1]));
return new JsonResponse($action->act($array['startDate'], $array['endDate']));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment