FlySystemLoader

in package
Implements LoaderInterface

Interfaces, Classes & Used Traits

LoaderInterface

Properties

private$filesystem  : \League\Flysystem\FilesystemInterface                

private$templatePath  : string                

Methods

public__construct(FilesystemInterface $filesystem[, string $templatePath = '' ]) : mixed

Parameters

$filesystem : FilesystemInterface
$templatePath : string = ''

Returns

mixed

publicgetSourceContext(mixed $name) : mixed

Parameters

$name : mixed

Returns

mixed
inheritDoc

publicexists(mixed $name) : mixed

Parameters

$name : mixed

Returns

mixed
inheritDoc

Gets the cache key to use for the cache for a given template name.

publicgetCacheKey(mixed $name) : mixed

Simple straightforward implementation that checks the existence of the template, and if it exists: returns the name to be used as a cache key.

Parameters

$name : mixed

Throws

\Twig\Error\LoaderError

When $name is not found.

Returns

mixed
inheritDoc

publicisFresh(mixed $name, mixed $time) : mixed

Parameters

$name : mixed
$time : mixed

Returns

mixed
inheritDoc

privateguardTemplateExistsAndIsFile(string $name) : void

Parameters

$name : string

Throws

\Twig\Error\LoaderError

privateresolveTemplateName(string $name) : string

Parameters

$name : string

Returns

string