/** * {@inheritDoc} */ public function paginate(AdapterInterface $adapter, $itemsPerPage = null, $page = null) { $page = $this->pager->paginate($adapter, $itemsPerPage, $page); if ($page->isOutOfBounds()) { throw new OutOfBoundsException($page->getNumber(), $page->getPageCount(), $this->redirectKey); } return $page; }
/** * {@inheritDoc} */ public function paginate(AdapterInterface $adapter, $itemsPerPage = null, $page = null) { return $this->pager->paginate($adapter, $itemsPerPage, $page ?: $this->getCurrentPage()); }