fixed example in doc (closes #484)

This commit is contained in:
Fabien Potencier
2011-10-25 17:37:58 +02:00
parent 22ef32e5eb
commit 96e72e408a
+2 -2
View File
@@ -131,8 +131,8 @@ Global variables and functions can be registered in an extensions via the
public function getGlobals()
{
return array(
'text' => new Text(),
'lipsum' => new Twig_Function(new Text(), 'getLipsum'),
'text' => new Text(),
'lipsum' => new Twig_Function_Function('generate_lipsum'),
);
}