Skip to content

Commit

Permalink
Remove deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sescandell committed Jan 4, 2016
1 parent 6682a44 commit 1cf8de7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Twig/Extension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function __construct(TwigRendererInterface $renderer)
public function getFunctions()
{
return array(
'form_js' => new \Twig_Function_Method($this, 'renderJavascript', array('is_safe' => array('html'))),
'form_css' => new \Twig_Function_Node('Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', array('is_safe' => array('html'))),
'form_js' => new \Twig_SimpleFunction('form_js', array($this, 'renderJavascript', array('is_safe' => array('html')))),
'form_css' => new \Twig_SimpleFunction('form_css', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
);
}

Expand All @@ -41,8 +41,8 @@ public function getFunctions()
public function getFilters()
{
return array(
'e4js' => new \Twig_Filter_Method($this, 'escape_for_js'),
'nowrap' => new \Twig_Filter_Method($this, 'nowrap'),
'e4js' => new \Twig_SimpleFilter('e4js', array($this, 'escape_for_js')),
'nowrap' => new \Twig_SimpleFilter('nowrap', array($this, 'nowrap')),
);
}

Expand Down

0 comments on commit 1cf8de7

Please sign in to comment.