# windpress/3.2.87/vendor/symfony/finder/Iterator/LazyIterator.php

WindPress – Tailwind CSS integration for WordPress, version 3.2.87. 30 lines.

- Page: https://pluginprobe.com/plugins/windpress/3.2.87/code/vendor/symfony/finder/Iterator/LazyIterator.php
- Raw: https://pluginprobe.com/plugins/windpress/3.2.87/raw/vendor/symfony/finder/Iterator/LazyIterator.php
- Modified: 2025-05-28T18:57:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/windpress/3.2.87/code/vendor/symfony/finder/Iterator/LazyIterator.php#L10-L20`.

```php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace WindPressDeps\Symfony\Component\Finder\Iterator;

/**
 * @author Jérémy Derussé <jeremy@derusse.com>
 *
 * @internal
 */
class LazyIterator implements \IteratorAggregate
{
    private $iteratorFactory;
    public function __construct(callable $iteratorFactory)
    {
        $this->iteratorFactory = $iteratorFactory;
    }
    public function getIterator(): \Traversable
    {
        yield from ($this->iteratorFactory)();
    }
}

```
