getUser($request), $user)) { throw new AuthorizationFailedException(); } $contacts = $user->contacts; list($offset, $limit) = $this->getOffsetAndLimit(); return $this->getPaginatedContentResponse($contacts->limit($offset, $limit), count($contacts)); } }