Documentation

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 = []

$autoescapeService

private mixed $autoescapeService

$autoescapeServiceMethod

private mixed $autoescapeServiceMethod

$baseTemplateClass

private mixed $baseTemplateClass

Methods

__construct()

public __construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
$value : array<string|int, mixed> = []

date()

public date([array<string|int, mixed> $value = [] ]) : DateConfig
Parameters
$value : array<string|int, mixed> = []
Return values
DateConfig

defaultPath()

The default path used to load templates

public defaultPath(ParamConfigurator|mixed $value) : $this
Parameters
$value : ParamConfigurator|mixed
Tags
default

'%kernel.project_dir%/templates'

Return values
$this

getExtensionAlias()

Gets the alias for the extension which config we are building.

public getExtensionAlias() : string
Return values
string

path()

public path(string $paths, mixed $value) : $this
Parameters
$paths : string
$value : mixed
Return values
$this

toArray()

Gets all configuration represented as an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results