mirror of
https://github.com/flextype/flextype.git
synced 2025-08-13 16:44:36 +02:00
Flextype: GlobalVarsTwigExtension - updates
- Constants added.
This commit is contained in:
@@ -30,6 +30,14 @@ class GlobalVarsTwigExtension extends \Twig_Extension implements \Twig_Extension
|
||||
public function getGlobals()
|
||||
{
|
||||
return [
|
||||
'PATH_SITE' => PATH['site'],
|
||||
'PATH_PLUGINS' => PATH['plugins'],
|
||||
'PATH_THEMES' => PATH['themes'],
|
||||
'PATH_ENTRIES' => PATH['entries'],
|
||||
'PATH_SNIPPETS' => PATH['snippets'],
|
||||
'PATH_CONFIG_DEFAULT' => PATH['config']['default'],
|
||||
'PATH_CONFIG_SITE' => PATH['config']['site'],
|
||||
'PATH_CACHE' => PATH['cache'],
|
||||
'flextype_version' => FLEXTYPE_VERSION,
|
||||
'registry' => $this->flextype['registry']->dump()
|
||||
];
|
||||
|
Reference in New Issue
Block a user