1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-27 15:00:11 +02:00

Slim Framework integration #118 #117

- CsrfTwigExtension updates
This commit is contained in:
Awilum
2019-05-24 13:57:13 +03:00
parent c67dd4009f
commit ea9bf43c32
6 changed files with 10 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ class AssetsTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('assets_add', array($this, 'add')),
new \Twig_SimpleFunction('assets_get', array($this, 'get')),
new \Twig_SimpleFunction('assets_add', [$this, 'add']),
new \Twig_SimpleFunction('assets_get', [$this, 'get']),
];
}

View File

@@ -35,7 +35,7 @@ class EmitterTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('emmiter_emmit', array($this, 'emit')),
new \Twig_SimpleFunction('emmiter_emmit', [$this, 'emit']),
];
}

View File

@@ -35,8 +35,8 @@ class EntriesTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('entries_fetch', array($this, 'fetch')),
new \Twig_SimpleFunction('entries_fetch_all', array($this, 'fetchAll')),
new \Twig_SimpleFunction('entries_fetch', [$this, 'fetch']),
new \Twig_SimpleFunction('entries_fetch_all', [$this, 'fetchAll']),
];
}

View File

@@ -24,8 +24,8 @@ class FilesystemTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('filesystem_has', array($this, 'has')),
new \Twig_SimpleFunction('filesystem_read', array($this, 'read')),
new \Twig_SimpleFunction('filesystem_has', [$this, 'has']),
new \Twig_SimpleFunction('filesystem_read', [$this, 'read']),
];
}

View File

@@ -24,7 +24,7 @@ class I18nTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('tr', array($this, 'tr')),
new \Twig_SimpleFunction('tr', [$this, 'tr']),
];
}

View File

@@ -22,8 +22,8 @@ class JsonParserTwigExtension extends \Twig_Extension
public function getFunctions()
{
return [
new \Twig_SimpleFunction('json_parser_decode', array($this, 'decode')),
new \Twig_SimpleFunction('json_parser_encode', array($this, 'encode'))
new \Twig_SimpleFunction('json_parser_decode', [$this, 'decode']),
new \Twig_SimpleFunction('json_parser_encode', [$this, 'encode'])
];
}