Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #120 from stof/patch-2
Browse files Browse the repository at this point in the history
Switch the Twig integration to use non-deprecated APIs
  • Loading branch information
pablodip committed Aug 30, 2015
2 parents e967fbf + ba73f0d commit 0922449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/PagerfantaExtension.php
Expand Up @@ -41,8 +41,8 @@ public function __construct(ContainerInterface $container)
public function getFunctions()
{
return array(
'pagerfanta' => new \Twig_Function_Method($this, 'renderPagerfanta', array('is_safe' => array('html'))),
'pagerfanta_page_url' => new \Twig_Function_Method($this, 'getPageUrl')
new \Twig_SimpleFunction('pagerfanta', array($this, 'renderPagerfanta'), array('is_safe' => array('html'))),
new \Twig_SimpleFunction('pagerfanta_page_url', array($this, 'getPageUrl')),
);
}

Expand Down

0 comments on commit 0922449

Please sign in to comment.