Manager/Manager.php
public function searchPager(Forum $forum, $search, $page)
    {
        $query = $this->forumRepo->search($forum, $search);

        return $this->pagerFactory->createPager($query, $page);
    }
public function searchPager(Forum $forum, $search, $page)
    {
        $query = $this->forumRepo->search($forum, $search);

        return $this->pagerFactory->createPager($query, $page);
    }
public function searchPager ( Forum $ forum , $ search , $ page ) { $ query = $ this -> forumRepo -> search ( $ forum , $ search ) ; return $ this -> pagerFactory -> createPager ( $ query , $ page ) ; }
Get the pager for the forum search.

@param \Claroline\ForumBundle\Entity\Forum $forum
@param string $search
@param integer $page

@return \Pagerfanta\Pagerfanta
Get the pager for the forum search .