1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 10:04:21 +02:00

Flextype: FilesystemTwigExtension - updates.

This commit is contained in:
Awilum
2019-04-25 19:53:36 +03:00
parent 9853163564
commit 469c101635

View File

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