phpDocumentor

FlySystemLoader
in package
implements LoaderInterface

Interfaces, Classes and Traits

LoaderInterface

Table of Contents

$filesystem  : FilesystemInterface
$overloadPrefix  : string|null
$templatePath  : string
__construct()  : mixed
exists()  : mixed
getCacheKey()  : mixed
Gets the cache key to use for the cache for a given template name.
getSourceContext()  : mixed
isFresh()  : mixed
guardTemplateExistsAndIsFile()  : void
resolveTemplateName()  : string

Properties

Methods

__construct()

public __construct(FilesystemInterface $filesystem[, string $templatePath = '' ][, string|null $overloadPrefix = null ]) : mixed
Parameters
$filesystem : FilesystemInterface
$templatePath : string = ''
$overloadPrefix : string|null = null
Return values
mixed

exists()

public exists(mixed $name) : mixed
Parameters
$name : mixed
Tags
inheritDoc
Return values
mixed

getCacheKey()

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

public getCacheKey(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
Tags
throws
LoaderError

When $name is not found.

inheritDoc
Return values
mixed

getSourceContext()

public getSourceContext(mixed $name) : mixed
Parameters
$name : mixed
Tags
inheritDoc
Return values
mixed

isFresh()

public isFresh(mixed $name, mixed $time) : mixed
Parameters
$name : mixed
$time : mixed
Tags
inheritDoc
Return values
mixed

guardTemplateExistsAndIsFile()

private guardTemplateExistsAndIsFile(string $name) : void
Parameters
$name : string
Tags
throws
LoaderError
Return values
void

resolveTemplateName()

private resolveTemplateName(string $name) : string
Parameters
$name : string
Return values
string

Search results