mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
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:
+1
-1
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user