Class

Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser

class TemplateNameParser extends TemplateNameParser

TemplateNameParser converts template names from the short notation "bundle:section:template.format.engine" to TemplateReferenceInterface instances.

Methods

TemplateReferenceInterface parse(string $name)

Parses a template to an array of parameters.

__construct(KernelInterface $kernel)

Constructor.

TemplateReferenceInterface parseFromFilename(string $file)

Convert a filename to a template.

Details

at line 44
public TemplateReferenceInterface parse(string $name)

Parses a template to an array of parameters.

Parameters

string $name A template name

Return Value

TemplateReferenceInterface A template

at line 35
public __construct(KernelInterface $kernel)

Constructor.

Parameters

KernelInterface $kernel A KernelInterface instance

at line 91
public TemplateReferenceInterface parseFromFilename(string $file)

Convert a filename to a template.

Parameters

string $file The filename

Return Value

TemplateReferenceInterface A template