sf4 resolve errors and depreciations

This commit is contained in:
2020-07-30 13:53:15 +02:00
parent 7881efa5fe
commit ced9d17d03
92 changed files with 52 additions and 51 deletions

View File

@@ -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(