EnvironmentBuilder
in package
FinalYes
Table of Contents
Properties
- $environment : Environment
Methods
- __construct() : mixed
- getTwigEnvironment() : Environment
- setContext() : void
- setEnvironmentFactory() : void
Properties
$environment
private
Environment
$environment
Methods
__construct()
public
__construct(ThemeManager $themeManager[, array<string|int, ExtensionInterface> $extensions = [] ]) : mixed
Parameters
- $themeManager : ThemeManager
- $extensions : array<string|int, ExtensionInterface> = []
getTwigEnvironment()
public
getTwigEnvironment() : Environment
Return values
EnvironmentsetContext()
public
setContext(RenderContext $context) : void
Parameters
- $context : RenderContext
setEnvironmentFactory()
public
setEnvironmentFactory(callable(): Environment $factory) : void
Parameters
- $factory : callable(): Environment