Implement Twig_Extension_GlobalsInterface on getGlobals example

This commit is contained in:
Darren Black
2016-03-07 14:00:22 +11:00
committed by Fabien Potencier
parent 3223e58253
commit b8a987ee33
+1 -1
View File
@@ -659,7 +659,7 @@ Globals
Global variables can be registered in an extension via the ``getGlobals()``
method::
class Project_Twig_Extension extends Twig_Extension
class Project_Twig_Extension extends Twig_Extension implements Twig_Extension_GlobalsInterface
{
public function getGlobals()
{