getContent(), true, 512, JSON_THROW_ON_ERROR); $queryString = $query['search']; } catch (\JsonException $e) { throw $this->createNotFoundException(); } $dates = $this->bpnDateRepository->getAutocompletionData($queryString); return $this->json($dates); } }