EnvironmentFactory
in package
Table of Contents
- $markDownConverter : MarkdownConverterInterface
- $renderer : LinkRenderer
- $templateOverridesAt : Path|null
- __construct() : mixed
- create() : Environment
- withTemplateOverridesAt() : void
- addPhpDocumentorExtension() : void
- Adds the phpDocumentor base extension to the Twig Environment.
- enableDebug() : void
Properties
$markDownConverter
private
MarkdownConverterInterface
$markDownConverter
$renderer
private
LinkRenderer
$renderer
$templateOverridesAt
private
Path|null
$templateOverridesAt
Methods
__construct()
public
__construct(LinkRenderer $renderer, MarkdownConverterInterface $markDownConverter) : mixed
Parameters
- $renderer : LinkRenderer
- $markDownConverter : MarkdownConverterInterface
Return values
mixed —create()
public
create(ProjectDescriptor $project, Template $template) : Environment
Parameters
- $project : ProjectDescriptor
- $template : Template
Return values
Environment —withTemplateOverridesAt()
public
withTemplateOverridesAt(Path $path) : void
Parameters
- $path : Path
Return values
void —addPhpDocumentorExtension()
Adds the phpDocumentor base extension to the Twig Environment.
private
addPhpDocumentorExtension(ProjectDescriptor $project, Environment $twigEnvironment) : void
Parameters
- $project : ProjectDescriptor
- $twigEnvironment : Environment
Return values
void —enableDebug()
private
enableDebug(Environment $twigEnvironment) : void
Parameters
- $twigEnvironment : Environment