minor #2002 Implement Twig_Extension_GlobalsInterface on getGlobals example (totaltrash)
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

nicolas-grekas/Twig,twigphp/Twig,gamernetwork/Twig,nicolas-grekas/Twig,gamernetwork/Twig,gencer/Twig,gamernetwork/Twig,twigphp/Twig,gencer/Twig,nicolas-grekas/Twig,twigphp/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig