lib/Collection/Result/Pagerfanta/PagerFactory.php
private function buildPager(AdapterInterface $adapter, Collection $collection, int $startPage): Pagerfanta
    {
        $pager = new Pagerfanta($adapter);

        $pager->setNormalizeOutOfRangePages(true);
        $pager->setMaxPerPage($this->getMaxPerPage($collection));
        $pager->setCurrentPage($startPage > 0 ? $startPage : 1);

        return $pager;
    }
private function buildPager(AdapterInterface $adapter, Collection $collection, int $startPage): Pagerfanta
    {
        $pager = new Pagerfanta($adapter);

        $pager->setNormalizeOutOfRangePages(true);
        $pager->setMaxPerPage($this->getMaxPerPage($collection));
        $pager->setCurrentPage($startPage > 0 ? $startPage : 1);

        return $pager;
    }
private function buildPager ( AdapterInterface $ adapter , Collection $ collection , int $ startPage ) : Pagerfanta { $ pager = new Pagerfanta ( $ adapter ) ; $ pager -> setNormalizeOutOfRangePages ( true ) ; $ pager -> setMaxPerPage ( $ this -> getMaxPerPage ( $ collection ) ) ; $ pager -> setCurrentPage ( $ startPage > 0 ? $ startPage : 1 ) ; return $ pager ; }
Builds the pager from provided adapter.
Builds the pager from provided adapter .