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\Templating;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
/**
* Twig filter to transform a string in a safer way to be the content of a csv
* cell.
*
* This filter replace the char " by ""
*/
class CSVCellTwig extends \Twig_Extension
class CSVCellTwig extends AbstractExtension
{
/*
* Returns a list of filters to add to the existing list.
@@ -39,7 +42,7 @@ class CSVCellTwig extends \Twig_Extension
public function getFilters()
{
return array(
new \Twig_SimpleFilter(
new TwigFilter(
'csv_cell',
array($this, 'csvCellFilter'),
array('is_safe' => array('html')))