Property | Type | Description | |
---|---|---|---|
$filesystem | Bolt\Filesystem\FilesystemInterface |
Method | Description | |
---|---|---|
__construct ( Bolt\Filesystem\FilesystemInterface $filesystem, array | string $paths = [] ) | Constructor. | |
addDir ( Bolt\Filesystem\Handler\DirectoryInterface $dir, string $namespace = self::MAIN_NAMESPACE ) | Adds a directory where templates are stored. | |
addPath ( $path, $namespace = self::MAIN_NAMESPACE ) | ||
getCacheKey ( $name ) | ||
getSource ( $name ) | ||
getSourceContext ( $name ) | ||
isFresh ( $name, $time ) | ||
prependDir ( Bolt\Filesystem\Handler\DirectoryInterface $dir, string $namespace = self::MAIN_NAMESPACE ) | Prepends a directory where templates are stored. | |
prependPath ( $path, $namespace = self::MAIN_NAMESPACE ) |
Method | Description | |
---|---|---|
findTemplate ( string $name, boolean $throw = true ) : Bolt\Filesystem\Handler\FileInterface | false | Finds a file given the template name. |
public __construct ( Bolt\Filesystem\FilesystemInterface $filesystem, array | string $paths = [] ) | ||
$filesystem | Bolt\Filesystem\FilesystemInterface | The filesystem to use |
$paths | array | string | A path or an array of paths where to look for templates |
protected findTemplate ( string $name, boolean $throw = true ) : Bolt\Filesystem\Handler\FileInterface | false | ||
$name | string | The template name. |
$throw | boolean | Whether to throw exceptions or return false. |
return | Bolt\Filesystem\Handler\FileInterface | false |
public prependDir ( Bolt\Filesystem\Handler\DirectoryInterface $dir, string $namespace = self::MAIN_NAMESPACE ) | ||
$dir | Bolt\Filesystem\Handler\DirectoryInterface | |
$namespace | string |