Skip to content

Commit

Permalink
Merge pull request #1 from rehuven/migrationSymfony
Browse files Browse the repository at this point in the history
change deprecated Twig_Function_Method
  • Loading branch information
sandvige authored Mar 7, 2017
2 parents 657762e + 32200ec commit 3eb846d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/Extension/OlarkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function __construct(ContainerInterface $container)
public function getFunctions()
{
return array(
"rg_olark_id" => new \Twig_Function_Method($this, "getOlarkId", array("is_safe" => array("html"))),
"rg_olark_option" => new \Twig_Function_Method($this, "getOlarkOption", array("is_safe" => array("html"))),
"rg_olark_id" => new \Twig_SimpleFunction('getOlarkId', array($this, 'getOlarkId'), array('is_safe' => array('html'))),
"rg_olark_option" => new \Twig_SimpleFunction('getOlarkOption', array($this, 'getOlarkOption'), array('is_safe' => array('html'))),
);
}

Expand Down

0 comments on commit 3eb846d

Please sign in to comment.