public function paginate(
        \Twig_Environment $twig,
        PaginatorInterface $paginator,
        string $template = '@Core/pagination/default.html.twig'
    ) {
        return $twig->render($template, array(
            'available_pages' => $paginator->getAvailablePages(),
            'current_page' => $paginator->getCurrentPage(),
            'next_url' => $this->getNextUrl($paginator),
            'previous_url' => $this->getPreviousUrl($paginator),
            'route' => $this->getRoute(),
            'params' => $this->getMergedParams(),
        ));
    }
public function paginate(
        \Twig_Environment $twig,
        PaginatorInterface $paginator,
        string $template = '@Core/pagination/default.html.twig'
    ) {
        return $twig->render($template, array(
            'available_pages' => $paginator->getAvailablePages(),
            'current_page' => $paginator->getCurrentPage(),
            'next_url' => $this->getNextUrl($paginator),
            'previous_url' => $this->getPreviousUrl($paginator),
            'route' => $this->getRoute(),
            'params' => $this->getMergedParams(),
        ));
    }
public function paginate ( \ Twig_Environment $ twig , PaginatorInterface $ paginator , string $ template = '@Core/pagination/default.html.twig' ) { return $ twig -> render ( $ template , array ( 'available_pages' => $ paginator -> getAvailablePages ( ) , 'current_page' => $ paginator -> getCurrentPage ( ) , 'next_url' => $ this -> getNextUrl ( $ paginator ) , 'previous_url' => $ this -> getPreviousUrl ( $ paginator ) , 'route' => $ this -> getRoute ( ) , 'params' => $ this -> getMergedParams ( ) , ) ) ; }
Render the given paginator

@param \Twig_Environment  $twig
@param PaginatorInterface $paginator
@param string             $template

@return string

@throws \Twig_Error_Loader
@throws \Twig_Error_Runtime
@throws \Twig_Error_Syntax
Render the given paginator