Documentation

SandboxExtension extends AbstractExtension
in package

Table of Contents

$policy  : mixed
$sandboxed  : mixed
$sandboxedGlobally  : mixed
$sourcePolicy  : mixed
__construct()  : mixed
checkMethodAllowed()  : mixed
checkPropertyAllowed()  : mixed
checkSecurity()  : mixed
disableSandbox()  : mixed
enableSandbox()  : mixed
ensureToStringAllowed()  : mixed
getFilters()  : array<string|int, TwigFilter>
Returns a list of filters to add to the existing list.
getFunctions()  : array<string|int, TwigFunction>
Returns a list of functions to add to the existing list.
getNodeVisitors()  : array<string|int, NodeVisitorInterface>
Returns the node visitor instances to add to the existing list.
getOperators()  : array<string|int, array<string|int, mixed>>
Returns a list of operators to add to the existing list.
getSecurityPolicy()  : mixed
getTests()  : array<string|int, TwigTest>
Returns a list of tests to add to the existing list.
getTokenParsers()  : array<string|int, TokenParserInterface>
Returns the token parser instances to add to the existing list.
isSandboxed()  : mixed
isSandboxedGlobally()  : mixed
setSecurityPolicy()  : mixed
isSourceSandboxed()  : bool

Properties

Methods

checkMethodAllowed()

public checkMethodAllowed(mixed $obj, mixed $method[, int $lineno = -1 ][, Source $source = null ]) : mixed
Parameters
$obj : mixed
$method : mixed
$lineno : int = -1
$source : Source = null
Return values
mixed

checkPropertyAllowed()

public checkPropertyAllowed(mixed $obj, mixed $property[, int $lineno = -1 ][, Source $source = null ]) : mixed
Parameters
$obj : mixed
$property : mixed
$lineno : int = -1
$source : Source = null
Return values
mixed

checkSecurity()

public checkSecurity(mixed $tags, mixed $filters, mixed $functions[, Source $source = null ]) : mixed
Parameters
$tags : mixed
$filters : mixed
$functions : mixed
$source : Source = null
Return values
mixed

disableSandbox()

public disableSandbox() : mixed
Return values
mixed

ensureToStringAllowed()

public ensureToStringAllowed(mixed $obj[, int $lineno = -1 ][, Source $source = null ]) : mixed
Parameters
$obj : mixed
$lineno : int = -1
$source : Source = null
Return values
mixed

getOperators()

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

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

First array of unary operators, second array of binary operators

getSecurityPolicy()

public getSecurityPolicy() : mixed
Return values
mixed

getTests()

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

public getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest>

isSandboxedGlobally()

public isSandboxedGlobally() : mixed
Return values
mixed

Search results