Symfony\Bundle\TwigBundle\Loader\FilesystemLoader
FilesystemLoader extends the default Twig filesystem loader to work with the Symfony2 paths.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FilesystemLoader
extends Twig_Loader_Filesystem
{
- // methods
- public void __construct()
- protected string findTemplate()
- // Inherited methods from Twig_Loader_Filesystem
- public void __construct()
- public array getPaths()
- public array getNamespaces()
- public void setPaths()
- public void addPath()
- public void prependPath()
- public void getSource()
- public void getCacheKey()
- public void exists()
- public void isFresh()
- protected void findTemplate()
- protected void validateName()
Hierarchy
Extends
Members
protected
- $cache
- $locator
- $parser
- $paths
Methods
protected
- findTemplate() — Returns the path to the template file.
Inherited from Twig_Loader_Filesystem
protected
public
- addPath() — Adds a path where templates are stored.
- exists() — {@inheritdoc}
- getCacheKey() — {@inheritdoc}
- getNamespaces() — Returns the path namespaces.
- getPaths() — Returns the paths to the templates.
- getSource() — {@inheritdoc}
- isFresh() — {@inheritdoc}
- prependPath() — Prepends a path where templates are stored.
- setPaths() — Sets the paths where templates are stored.