class TemplateIterator implements IteratorAggregate
Iterator for all templates in bundles and in the application Resources directory.
__construct(KernelInterface $kernel, string $rootDir, array $paths = array(), string $defaultPath = null) | ||
getIterator() {@inheritdoc} |
KernelInterface | $kernel | A KernelInterface instance |
string | $rootDir | The directory where global templates can be stored |
array | $paths | Additional Twig paths to warm |
string | $defaultPath | The directory where global templates can be stored |
{@inheritdoc}
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/TwigBundle/TemplateIterator.html