$executor */ public function __construct( private FindAllEmployees $usecase, private UsecaseExecutor $executor, private EmployeesIndexPresenter $presenter, ) { } public function __invoke(EmployeesIndexRequest $request): JsonResponse { /** @var \Presentation\Api\V1\Presenters\Employees\EmployeesIndexView $response */ $response = UsecaseBuilder::using($this->executor) ->do($this->usecase) ->from($request->toInput()) ->with($this->presenter) ->run(); return (new EmployeesIndexResponse($response, $request->toLeagueUri()))->present(); } }