scheduleRepository->findForUser( $request->scheduleId, $request->user, ); if ($schedule === null) { throw new NotFoundException('schedule not found'); } return $schedule; } }