clientService->newClient(); $feed = $client->get($url); return new JSONResponse($this->episodeActionReader->parseRssXml((string) $feed->getBody()), $feed->getStatusCode()); } public function action(string $url): JSONResponse { $action = $this->episodeActionRepository->findByEpisodeUrl($url, $this->userService->getUserUID()); if ($action) { return new JSONResponse($action->toArray()); } return new JSONResponse([], Http::STATUS_NOT_FOUND); } }