Skip to content

Commit 9e05932

Browse files
committed
Merge pull request #30 from stof/patch-1
Switch the Twig integration to use non-deprecated APIs
2 parents 53bfd7b + 95e8516 commit 9e05932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Twig/HTMLPurifierExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(ContainerInterface $container)
2626
public function getFilters()
2727
{
2828
return array(
29-
'purify' => new \Twig_Filter_Method($this, 'purify', array('is_safe' => array('html'))),
29+
new \Twig_SimpleFilter('purify', array($this, 'purify'), array('is_safe' => array('html'))),
3030
);
3131
}
3232

0 commit comments

Comments
 (0)