Skip to content

Commit

Permalink
Merge pull request masev#15 from Simontlz/master
Browse files Browse the repository at this point in the history
Use new Twig_SimpleFunction class
  • Loading branch information
masev committed Aug 3, 2018
2 parents 63d5364 + c4eabdb commit 19dbe47
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 19dbe47

Please sign in to comment.