\phpDocumentor\Transformer\Writer\TwigFlySystemLoader

Summary

Methods
Properties
Constants
__construct()
getSourceContext()
exists()
getCacheKey()
isFresh()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
guardTemplateExistsAndIsFile()
resolveTemplateName()
$filesystem
$templatePath
$overloadPrefix
N/A

Properties

$filesystem

$filesystem : \League\Flysystem\FilesystemInterface

Type

\League\Flysystem\FilesystemInterface —

$templatePath

$templatePath : string

Type

string

$overloadPrefix

$overloadPrefix : string|null

Type

string|null — prefix used to allow extends of base templates. For example `{% extends 'template::css/template.css.twig' %}`

Methods

__construct()

__construct(\League\Flysystem\FilesystemInterface  $filesystem, string  $templatePath = '', ?string  $overloadPrefix = null) : mixed

Parameters

\League\Flysystem\FilesystemInterface $filesystem
string $templatePath
?string $overloadPrefix

Returns

mixed —

getSourceContext()

getSourceContext(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

exists()

exists(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

getCacheKey()

getCacheKey(mixed  $name) : mixed

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

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

mixed $name

Throws

\Twig\Error\LoaderError

When $name is not found.

Returns

mixed —

isFresh()

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

Parameters

mixed $name
mixed $time

Returns

mixed —

guardTemplateExistsAndIsFile()

guardTemplateExistsAndIsFile(string  $name) : void

Parameters

string $name

Throws

\Twig\Error\LoaderError

resolveTemplateName()

resolveTemplateName(string  $name) : string

Parameters

string $name

Returns

string —