mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
fixed example in doc (closes #484)
This commit is contained in:
+2
-2
@@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user