<?php
namespace App\Controller\AppClient\Vacation;
use App\Services\Vacation\VacationService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use OpenApi\Annotations as OA;
/**
* @Route("/api/appClient/v1/lk/vacations/all", name="app.client.vacations.get", methods={"GET"})
* @OA\Response(
* response=200,
* description="Информация о пользователе"
* )
* @OA\Parameter(
* name="department",
* in="query",
* description="Должность"
* )
* @OA\Tag(name="App client")
*/
class GetVacationController extends AbstractController
{
public function __invoke(VacationService $vacationService, Request $request): JsonResponse
{
return $this->json($vacationService->getVacations($request));
}
}