TwigConfig
in package
implements
ConfigBuilderInterface
This class is automatically generated to help in creating a config.
Table of Contents
Interfaces
- ConfigBuilderInterface
- A ConfigBuilder provides helper methods to build a large complex array.
Properties
- $_usedProperties : mixed
- $autoescape : mixed
- $autoescapeService : mixed
- $autoescapeServiceMethod : mixed
- $autoReload : mixed
- $baseTemplateClass : mixed
- $cache : mixed
- $charset : mixed
- $date : mixed
- $debug : mixed
- $defaultPath : mixed
- $formThemes : mixed
- $globals : mixed
- $numberFormat : mixed
- $optimizations : mixed
- $paths : mixed
- $strictVariables : mixed
Methods
- __construct() : mixed
- autoescape() : $this
- autoescapeService() : $this
- autoescapeServiceMethod() : $this
- autoReload() : $this
- baseTemplateClass() : $this
- cache() : $this
- charset() : $this
- date() : DateConfig
- debug() : $this
- defaultPath() : $this
- The default path used to load templates
- formThemes() : $this
- getExtensionAlias() : string
- Gets the alias for the extension which config we are building.
- global() : GlobalConfig|$this
- numberFormat() : NumberFormatConfig
- optimizations() : $this
- path() : $this
- strictVariables() : $this
- toArray() : array<string|int, mixed>
- Gets all configuration represented as an array.
Properties
$_usedProperties
private
mixed
$_usedProperties
= []
$autoescape
private
mixed
$autoescape
$autoescapeService
private
mixed
$autoescapeService
$autoescapeServiceMethod
private
mixed
$autoescapeServiceMethod
$autoReload
private
mixed
$autoReload
$baseTemplateClass
private
mixed
$baseTemplateClass
$cache
private
mixed
$cache
$charset
private
mixed
$charset
$date
private
mixed
$date
$debug
private
mixed
$debug
$defaultPath
private
mixed
$defaultPath
$formThemes
private
mixed
$formThemes
$globals
private
mixed
$globals
$numberFormat
private
mixed
$numberFormat
$optimizations
private
mixed
$optimizations
$paths
private
mixed
$paths
$strictVariables
private
mixed
$strictVariables
Methods
__construct()
public
__construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
- $value : array<string|int, mixed> = []
autoescape()
public
autoescape([ParamConfigurator|mixed $value = 'name' ]) : $this
Parameters
- $value : ParamConfigurator|mixed = 'name'
Tags
Return values
$thisautoescapeService()
public
autoescapeService(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisautoescapeServiceMethod()
public
autoescapeServiceMethod(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisautoReload()
public
autoReload(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisbaseTemplateClass()
public
baseTemplateClass(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thiscache()
public
cache(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thischarset()
public
charset(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisdate()
public
date([array<string|int, mixed> $value = [] ]) : DateConfig
Parameters
- $value : array<string|int, mixed> = []
Return values
DateConfigdebug()
public
debug(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thisdefaultPath()
The default path used to load templates
public
defaultPath(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisformThemes()
public
formThemes(ParamConfigurator|array<int, ParamConfigurator|mixed> $value) : $this
Parameters
- $value : ParamConfigurator|array<int, ParamConfigurator|mixed>
Return values
$thisgetExtensionAlias()
Gets the alias for the extension which config we are building.
public
getExtensionAlias() : string
Return values
stringglobal()
public
global(string $key[, mixed $value = [] ]) : GlobalConfig|$this
Parameters
- $key : string
- $value : mixed = []
Return values
GlobalConfig|$thisnumberFormat()
public
numberFormat([array<string|int, mixed> $value = [] ]) : NumberFormatConfig
Parameters
- $value : array<string|int, mixed> = []
Return values
NumberFormatConfigoptimizations()
public
optimizations(ParamConfigurator|int $value) : $this
Parameters
- $value : ParamConfigurator|int
Tags
Return values
$thispath()
public
path(string $paths, mixed $value) : $this
Parameters
- $paths : string
- $value : mixed
Return values
$thisstrictVariables()
public
strictVariables(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thistoArray()
Gets all configuration represented as an array.
public
toArray() : array<string|int, mixed>