protected function makePagerFromArray($data, $page = 1, $limit = 10)
    {
        $adapter = new ArrayAdapter($data);
        $pager   = new Pagerfanta($adapter);
        $pager->setMaxPerPage($limit);
        $pager->setCurrentPage($page);

        return $pager;
    }