manager->getEntries($this->userSession->getUser(), $filter); } /** * @return JSONResponse|\JsonSerializable * @throws Exception */ #[NoAdminRequired] #[FrontpageRoute(verb: 'POST', url: '/contactsmenu/findOne')] public function findOne(int $shareType, string $shareWith) { $contact = $this->manager->findOne($this->userSession->getUser(), $shareType, $shareWith); if ($contact) { return $contact; } return new JSONResponse([], Http::STATUS_NOT_FOUND); } }