コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
 /**
  * @param Request $request
  * @return JsonResponse
  */
 public function getPostSimpleAction(Request $request)
 {
     return $this->postRepository->getAll();
 }