From: Fabien Potencier Date: Tue, 25 Oct 2011 15:37:58 +0000 (+0200) Subject: fixed example in doc (closes #484) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=96e72e408a4bc55abf7e0db896a56ff40b64cf46;p=web%2Fkonrad%2Ftwig.git fixed example in doc (closes #484) --- diff --git a/doc/extensions.rst b/doc/extensions.rst index 7e9941f..1f61a3e 100644 --- a/doc/extensions.rst +++ b/doc/extensions.rst @@ -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'), ); }