EnvironmentFactory
in package
Table of Contents
Properties
- $assetsExtension : AssetsExtension
- $guidesTemplateBasePath : array<string|int, mixed>
- $markDownConverter : ConverterInterface
- $pathBuilder : PathBuilder
- $relativePathToRootConverter : RelativePathToRootConverter
- $renderer : LinkRenderer
- $templateOverridesAt : Path|null
- $umlExtension : UmlExtension
Methods
- __construct() : mixed
- create() : Environment
- withTemplateOverridesAt() : void
- addPhpDocumentorExtension() : void
- Adds the phpDocumentor base extension to the Twig Environment.
- enableDebug() : void
Properties
$assetsExtension read-only
private
AssetsExtension
$assetsExtension
$guidesTemplateBasePath read-only
private
array<string|int, mixed>
$guidesTemplateBasePath
$markDownConverter read-only
private
ConverterInterface
$markDownConverter
$pathBuilder read-only
private
PathBuilder
$pathBuilder
$relativePathToRootConverter read-only
private
RelativePathToRootConverter
$relativePathToRootConverter
$renderer read-only
private
LinkRenderer
$renderer
$templateOverridesAt
private
Path|null
$templateOverridesAt
= null
$umlExtension read-only
private
UmlExtension
$umlExtension
Methods
__construct()
public
__construct(LinkRenderer $renderer, ConverterInterface $markDownConverter, AssetsExtension $assetsExtension, UmlExtension $umlExtension, RelativePathToRootConverter $relativePathToRootConverter, PathBuilder $pathBuilder, array<string|int, string> $guidesTemplateBasePath) : mixed
Parameters
- $renderer : LinkRenderer
- $markDownConverter : ConverterInterface
- $assetsExtension : AssetsExtension
- $umlExtension : UmlExtension
- $relativePathToRootConverter : RelativePathToRootConverter
- $pathBuilder : PathBuilder
- $guidesTemplateBasePath : array<string|int, string>
create()
public
create(ProjectDescriptor $project, DocumentationSetDescriptor $documentationSet, Template $template) : Environment
Parameters
- $project : ProjectDescriptor
- $documentationSet : DocumentationSetDescriptor
- $template : Template
Return values
EnvironmentwithTemplateOverridesAt()
public
withTemplateOverridesAt(Path $path) : void
Parameters
- $path : Path
addPhpDocumentorExtension()
Adds the phpDocumentor base extension to the Twig Environment.
private
addPhpDocumentorExtension(ProjectDescriptor $project, DocumentationSetDescriptor $documentationSet, Environment $twigEnvironment) : void
Parameters
- $project : ProjectDescriptor
- $documentationSet : DocumentationSetDescriptor
- $twigEnvironment : Environment
enableDebug()
private
enableDebug(Environment $twigEnvironment) : void
Parameters
- $twigEnvironment : Environment