mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 04:23:49 +00:00
sf4 resolve errors and depreciations
This commit is contained in:
@@ -22,13 +22,16 @@
|
||||
|
||||
namespace Chill\MainBundle\Pagination;
|
||||
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\TwigFunction;
|
||||
|
||||
/**
|
||||
* add twig function to render pagination
|
||||
*
|
||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
||||
* @author Champs Libres <info@champs-libres.coop>
|
||||
*/
|
||||
class ChillPaginationTwig extends \Twig_Extension
|
||||
class ChillPaginationTwig extends AbstractExtension
|
||||
{
|
||||
const LONG_TEMPLATE = 'ChillMainBundle:Pagination:long.html.twig';
|
||||
const SHORT_TEMPLATE = 'ChillMainBundle:Pagination:short.html.twig';
|
||||
@@ -41,7 +44,7 @@ class ChillPaginationTwig extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return array(
|
||||
new \Twig_SimpleFunction(
|
||||
new TwigFunction(
|
||||
'chill_pagination',
|
||||
array($this, 'paginationRender'),
|
||||
array(
|
||||
|
Reference in New Issue
Block a user