public function getPagesAction(Request $request, ParamFetcherInterface $paramFetcher) { if (!$this->isGranted('VIEW', new AdminPage())) { throw new AccessDeniedException(); } $offset = $paramFetcher->get('offset'); $offset = null === $offset ? 0 : $offset; $limit = $paramFetcher->get('limit'); return $this->container->get('ojs_api.page.handler')->all($limit, $offset); }