class TemplateNameParser extends TemplateNameParser
TemplateNameParser converts template names from the short notation "bundle:section:template.format.engine" to TemplateReferenceInterface instances.
protected | $kernel | ||
protected | $cache |
TemplateReferenceInterface | parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. | |
__construct(KernelInterface $kernel) |
Convert a template name to a TemplateReferenceInterface instance.
string|TemplateReferenceInterface | $name | A template name or a TemplateReferenceInterface instance |
TemplateReferenceInterface | A template |
KernelInterface | $kernel |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/TemplateNameParser.html