class TemplateNameParser implements TemplateNameParserInterface
TemplateNameParser is the default implementation of TemplateNameParserInterface.
This implementation takes everything as the template name and the extension for the engine.
TemplateReferenceInterface | parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. |
Convert a template name to a TemplateReferenceInterface instance.
string|TemplateReferenceInterface | $name | A template name or a TemplateReferenceInterface instance |
TemplateReferenceInterface | A template |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Templating/TemplateNameParser.html