class TwigFilesystemLoader extends Twig_Loader_Filesystem (View source)

The TwigFilesystemLoader class.

Methods

__construct(array|string $paths, string $separator = '.')

TwigFilesystemLoader constructor.

string
getSeparator()

Method to get property Separator

setSeparator(string $separator)

Method to set property separator

addPath(string $path, string $namespace = self::MAIN_NAMESPACE)

Adds a path where templates are stored.

Details

at line line 33
__construct(array|string $paths, string $separator = '.')

TwigFilesystemLoader constructor.

Parameters

array|string $paths
string $separator

at line line 45
string getSeparator()

Method to get property Separator

Return Value

string

at line line 57
TwigFilesystemLoader setSeparator(string $separator)

Method to set property separator

Parameters

string $separator

Return Value

TwigFilesystemLoader Return self to support chaining.

at line line 91
addPath(string $path, string $namespace = self::MAIN_NAMESPACE)

Adds a path where templates are stored.

Parameters

string $path A path where to look for templates
string $namespace A path name