1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-14 17:14:22 +02:00

Slim Framework integration #118 #117

- Global Vars refactoring
This commit is contained in:
Awilum
2019-06-01 14:58:40 +03:00
parent a065a95703
commit 753d9ccf2e

View File

@@ -41,9 +41,7 @@ class GlobalVarsTwigExtension extends \Twig_Extension implements \Twig_Extension
'PATH_CONFIG_SITE' => PATH['config']['site'],
'PATH_CACHE' => PATH['cache'],
'flextype_version' => FLEXTYPE_VERSION,
'registry' => $this->flextype['registry']->dump(),
'is_logged' => ((Session::exists('role') && Session::get('role') == 'admin') ? true : false),
'username' => Session::exists('username') ? Session::get('username') : ''
'registry' => $this->flextype['registry']->dump()
];
}
}