From 96e72e408a4bc55abf7e0db896a56ff40b64cf46 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 25 Oct 2011 17:37:58 +0200 Subject: [PATCH] fixed example in doc (closes #484) --- doc/extensions.rst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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'), ); } -- 1.7.2.5