Properties

$sandboxedGlobally

$sandboxedGlobally : 

Type

$sandboxed

$sandboxed : 

Type

$policy

$policy : 

Type

Methods

getTokenParsers()

getTokenParsers() : array<mixed,\Twig_TokenParserInterface>

Returns the token parser instances to add to the existing list.

Returns

array<mixed,\Twig_TokenParserInterface>

getNodeVisitors()

getNodeVisitors() : array<mixed,\Twig_NodeVisitorInterface>

Returns the node visitor instances to add to the existing list.

Returns

array<mixed,\Twig_NodeVisitorInterface>

enableSandbox()

enableSandbox() 

disableSandbox()

disableSandbox() 

isSandboxed()

isSandboxed() 

isSandboxedGlobally()

isSandboxedGlobally() 

getSecurityPolicy()

getSecurityPolicy() 

checkSecurity()

checkSecurity(  $tags,   $filters,   $functions) 

Parameters

$tags
$filters
$functions

checkMethodAllowed()

checkMethodAllowed(  $obj,   $method) 

Parameters

$obj
$method

checkPropertyAllowed()

checkPropertyAllowed(  $obj,   $method) 

Parameters

$obj
$method

ensureToStringAllowed()

ensureToStringAllowed(  $obj) 

Parameters

$obj

getFilters()

getFilters() : array<mixed,\Twig_Filter>

Returns a list of filters to add to the existing list.

Returns

array<mixed,\Twig_Filter>

getTests()

getTests() : array<mixed,\Twig_Test>

Returns a list of tests to add to the existing list.

Returns

array<mixed,\Twig_Test>

getFunctions()

getFunctions() : array<mixed,\Twig_Function>

Returns a list of functions to add to the existing list.

Returns

array<mixed,\Twig_Function>

getOperators()

getOperators() : \array<array>

Returns a list of operators to add to the existing list.

Returns

\array

First array of unary operators, second array of binary operators