eggConfigurationService = $eggConfigurationService; $this->repository = $repository; } /** * @param \Illuminate\Http\Request $request * @param $uuid * @return \Illuminate\Http\JsonResponse * * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException */ public function __invoke(Request $request, $uuid) { $server = $this->repository->getByUuid($uuid); return JsonResponse::create( $this->eggConfigurationService->handle($server) ); } }