Skip to content

Commit 2581907

Browse files
committed
Merge branch '2.3'
* 2.3: updated VENDORS for 2.2.8 updated VENDORS for 2.2.6 updated VENDORS for 2.2.5 updated demo code to use the non-deprecated features of Twig updated VENDORS for 2.2.4 updated VENDORS for 2.2.3 updated VENDORS for 2.2.2
2 parents f469a46 + dae4d06 commit 2581907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Acme/DemoBundle/Twig/Extension/DemoExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setController($controller)
2525
public function getFunctions()
2626
{
2727
return array(
28-
'code' => new \Twig_Function_Method($this, 'getCode', array('is_safe' => array('html'))),
28+
new \Twig_SimpleFunction('code', array($this, 'getCode'), array('is_safe' => array('html'))),
2929
);
3030
}
3131

0 commit comments

Comments
 (0)