minor #2002 Implement Twig_Extension_GlobalsInterface on getGlobals example (totaltrash)

This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #2002).

Discussion
----------

Implement Twig_Extension_GlobalsInterface on getGlobals example

I'm not sure if more information is required on when and why getGlobals was deprecated from Twig_Extension.

Refs #2001

Commits
-------

b8a987e Implement Twig_Extension_GlobalsInterface on getGlobals example
This commit is contained in:
Fabien Potencier
2016-04-20 08:47:43 +02:00
+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()
{