mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-12 20:09:46 +01:00
Merge branch 'develop' into feature/twig-hooks-filters
This commit is contained in:
@@ -139,6 +139,11 @@ $function = new TwigFunction('csrfToken', function () {
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('session', function ($key) {
|
||||
return session($key);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$filter = new TwigFilter('urlencode', function ($s) {
|
||||
return urlencode($s);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user