/** * @param int $page * @return object */ public function getAll($page) { $offset = ($page - 1) * self::ALL_POST_LIMIT; return $this->repository->getAll($offset, self::ALL_POST_LIMIT); }
/** * @param Request $request * @return JsonResponse */ public function getPostSimpleAction(Request $request) { return $this->postRepository->getAll(); }