Skip to content

Commit

Permalink
Use new Twig_SimpleFunction class
Browse files Browse the repository at this point in the history
Twig_Function_Method has been removed from Sf framework. 
So we have to use Twig_SimpleFunction.
  • Loading branch information
Simontlz committed Aug 3, 2018
1 parent 63d5364 commit c4eabdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/MasevExtension.php
Expand Up @@ -12,7 +12,7 @@ public function __construct($configResolver) {

public function getFunctions() {
return array(
'getMasevSettings' => new \Twig_Function_Method($this, 'getMasevSettings')
new \Twig_SimpleFunction('getMasevSettings', [$this, 'getMasevSettings'])
);
}

Expand All @@ -29,4 +29,4 @@ public function getName()
{
return 'masev_extension';
}
}
}

0 comments on commit c4eabdb

Please sign in to comment.