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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user