SandboxExtension
extends AbstractExtension
in package
Table of Contents
- $policy : mixed
- $sandboxed : mixed
- $sandboxedGlobally : mixed
- __construct() : mixed
- checkMethodAllowed() : void
- checkPropertyAllowed() : void
- checkSecurity() : void
- disableSandbox() : void
- enableSandbox() : void
- 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() : SecurityPolicyInterface
- 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() : bool
- isSandboxedGlobally() : bool
- setSecurityPolicy() : mixed
Properties
$policy
private
mixed
$policy
$sandboxed
private
mixed
$sandboxed
$sandboxedGlobally
private
mixed
$sandboxedGlobally
Methods
__construct()
public
__construct(SecurityPolicyInterface $policy[, mixed $sandboxed = false ]) : mixed
Parameters
- $policy : SecurityPolicyInterface
- $sandboxed : mixed = false
Return values
mixed —checkMethodAllowed()
public
checkMethodAllowed(mixed $obj, mixed $method[, int $lineno = -1 ][, Source $source = null ]) : void
Parameters
- $obj : mixed
- $method : mixed
- $lineno : int = -1
- $source : Source = null
Return values
void —checkPropertyAllowed()
public
checkPropertyAllowed(mixed $obj, mixed $method[, int $lineno = -1 ][, Source $source = null ]) : void
Parameters
- $obj : mixed
- $method : mixed
- $lineno : int = -1
- $source : Source = null
Return values
void —checkSecurity()
public
checkSecurity(mixed $tags, mixed $filters, mixed $functions) : void
Parameters
- $tags : mixed
- $filters : mixed
- $functions : mixed
Return values
void —disableSandbox()
public
disableSandbox() : void
Return values
void —enableSandbox()
public
enableSandbox() : void
Return values
void —ensureToStringAllowed()
public
ensureToStringAllowed(mixed $obj[, int $lineno = -1 ][, Source $source = null ]) : mixed
Parameters
- $obj : mixed
- $lineno : int = -1
- $source : Source = null
Return values
mixed —getFilters()
Returns a list of filters to add to the existing list.
public
getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter> —getFunctions()
Returns a list of functions to add to the existing list.
public
getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction> —getNodeVisitors()
Returns the node visitor instances to add to the existing list.
public
getNodeVisitors() : array<string|int, NodeVisitorInterface>
Return values
array<string|int, NodeVisitorInterface> —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() : SecurityPolicyInterface
Return values
SecurityPolicyInterface —getTests()
Returns a list of tests to add to the existing list.
public
getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest> —getTokenParsers()
Returns the token parser instances to add to the existing list.
public
getTokenParsers() : array<string|int, TokenParserInterface>
Return values
array<string|int, TokenParserInterface> —isSandboxed()
public
isSandboxed() : bool
Return values
bool —isSandboxedGlobally()
public
isSandboxedGlobally() : bool
Return values
bool —setSecurityPolicy()
public
setSecurityPolicy(SecurityPolicyInterface $policy) : mixed
Parameters
- $policy : SecurityPolicyInterface