make controller
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
added 9 commits
-
f205f644 - 1 commit from branch
main
- 9d38d459 - create interfaces | create VlidationService
- a430fd5a - create prices model sort action and controller
- 2b3fa047 - sumplify solution
- 4ebf14ce - symplify controller
- b0fd1077 - rm manula http status init in response
- 295a6342 - rm useles use
- 19237b0d - make controller
- 48b0e95d - add diff days action | controller | req
Toggle commit list-
f205f644 - 1 commit from branch
- src/Controller/DiffDaysController.php 0 → 100644
9 use Symfony\Component\HttpFoundation\Response; 10 use Symfony\Component\Routing\Attribute\Route; 11 12 class DiffDaysController extends AbstractController 13 { 14 /** 15 * Контроллер вернет кол-во дней между датами 16 * @param DiffDaysRequest $request 17 * @param DiffDaysAction $action 18 * @return Response 19 */ 20 #[Route('/diff/days', name: 'app_diff_days', methods: ['POST'])] 21 public function index(DiffDaysRequest $request, DiffDaysAction $action): Response 22 { 23 $array = $request->serialise(); 24 return new JsonResponse($action->act($array[0], $array[1])); changed this line in version 7 of the diff
mentioned in commit 1482daa5
Please register or sign in to reply