Property | Type | Description | |
---|---|---|---|
$locator | |||
$parser |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null ) | Constructor. | |
exists ( $name ) |
Method | Description | |
---|---|---|
findTemplate ( string | Symfony\Component\Templating\TemplateReferenceInterface $template, boolean $throw = true ) : string | Returns the path to the template file. |
public __construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null ) | ||
$locator | Symfony\Component\Config\FileLocatorInterface | A FileLocatorInterface instance |
$parser | Symfony\Component\Templating\TemplateNameParserInterface | A TemplateNameParserInterface instance |
$rootPath | string | null | The root path common to all relative paths (null for getcwd()) |
public exists ( $name ) |
protected findTemplate ( string | Symfony\Component\Templating\TemplateReferenceInterface $template, boolean $throw = true ) : string | ||
$template | string | Symfony\Component\Templating\TemplateReferenceInterface | The template |
$throw | boolean | When true, a \Twig_Error_Loader exception will be thrown if a template could not be found |
return | string | The path to the template file |