FilesystemLoader

FilesystemLoader

class FilesystemLoader extends FilesystemLoader

FilesystemLoader extends the default Twig filesystem loader to work with the Symfony paths and template references.

Methods

__construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser, string|null $rootPath = null)

Constructor.

exists($name)

{@inheritdoc}

Details

__construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser, string|null $rootPath = null)

Constructor.

Parameters

FileLocatorInterface $locator A FileLocatorInterface instance
TemplateNameParserInterface $parser A TemplateNameParserInterface instance
string|null $rootPath The root path common to all relative paths (null for getcwd())

exists($name)

{@inheritdoc}

The name parameter might also be a TemplateReferenceInterface.

Parameters

$name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部