File "TemplateDirIterator.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Util/TemplateDirIterator.php
File size: 590 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?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.
 */

namespace Twig\Util;

/**
 * @author Fabien Potencier <[email protected]>
 */
class TemplateDirIterator extends \IteratorIterator
{
    public function current()
    {
        return file_get_contents(parent::current());
    }

    public function key()
    {
        return (string) parent::key();
    }
}

class_alias('Twig\Util\TemplateDirIterator', 'Twig_Util_TemplateDirIterator');