diff options
Diffstat (limited to 'public/system/library/template/Twig/Util/TemplateDirIterator.php')
-rw-r--r-- | public/system/library/template/Twig/Util/TemplateDirIterator.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/public/system/library/template/Twig/Util/TemplateDirIterator.php b/public/system/library/template/Twig/Util/TemplateDirIterator.php new file mode 100644 index 0000000..3fb8932 --- /dev/null +++ b/public/system/library/template/Twig/Util/TemplateDirIterator.php @@ -0,0 +1,26 @@ +<?php + +/* + * This file is part of Twig. + * + * (c) Fabien Potencier + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * @author Fabien Potencier <fabien@symfony.com> + */ +class Twig_Util_TemplateDirIterator extends IteratorIterator +{ + public function current() + { + return file_get_contents(parent::current()); + } + + public function key() + { + return (string) parent::key(); + } +} |