diff --git a/flextype/twig/FilesystemTwigExtension.php b/flextype/twig/FilesystemTwigExtension.php index 54f67e3d..4b1ded26 100644 --- a/flextype/twig/FilesystemTwigExtension.php +++ b/flextype/twig/FilesystemTwigExtension.php @@ -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); }