mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
sf4 resolve errors and depreciations
This commit is contained in:
@@ -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')))
|
||||
|
Reference in New Issue
Block a user