Constants
TEMPLATE_DEFINITION_FILENAME Line 37
mixed TEMPLATE_DEFINITION_FILENAME = 'template.xml'
Properties
$flySystemFactory Line 40
private$flySystemFactory : \phpDocumentor\Parser\FlySystemFactory
$globalTemplatesPath Line 43
private$globalTemplatesPath : string
Methods
__construct() Line 48
Constructs a new template factory with its dependencies.
public__construct(FlySystemFactory $flySystemFactory, string $globalTemplatesPath) : mixed
get() Line 60
Attempts to find, construct and return a template object with the given template name or (relative/absolute) path.
publicget(Transformer $transformer, string $nameOrPath) : Template
Returns
string[] —
getTemplatesPath() Line 95
Returns the path where all templates are stored.
publicgetTemplatesPath() : string
Returns
string —
createTemplateFromXml() Line 103
Creates and returns a template object based on the provided template definition.
protectedcreateTemplateFromXml(Transformer $transformer, string $nameOrPath) : Template