mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Implement Twig_Extension_GlobalsInterface on getGlobals example
This commit is contained in:
committed by
Fabien Potencier
parent
3223e58253
commit
b8a987ee33
+1
-1
@@ -659,7 +659,7 @@ Globals
|
|||||||
Global variables can be registered in an extension via the ``getGlobals()``
|
Global variables can be registered in an extension via the ``getGlobals()``
|
||||||
method::
|
method::
|
||||||
|
|
||||||
class Project_Twig_Extension extends Twig_Extension
|
class Project_Twig_Extension extends Twig_Extension implements Twig_Extension_GlobalsInterface
|
||||||
{
|
{
|
||||||
public function getGlobals()
|
public function getGlobals()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user