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(),
        ));
    }