TemplateIterator

TemplateIterator

class TemplateIterator implements IteratorAggregate

Iterator for all templates in bundles and in the application Resources directory.

Methods

__construct(KernelInterface $kernel, string $rootDir, array $paths = array())
getIterator()

{@inheritdoc}

Details

__construct(KernelInterface $kernel, string $rootDir, array $paths = array())

Parameters

KernelInterface $kernel A KernelInterface instance
string $rootDir The directory where global templates can be stored
array $paths Additional Twig paths to warm

getIterator()

{@inheritdoc}

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Bundle/TwigBundle/TemplateIterator.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部