\Twig\SandboxSecurityPolicy

Represents a security policy which need to be enforced when sandbox mode is enabled.

Summary

Methods
Properties
Constants
__construct()
setAllowedTags()
setAllowedFilters()
setAllowedMethods()
setAllowedProperties()
setAllowedFunctions()
checkSecurity()
checkMethodAllowed()
checkPropertyAllowed()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$allowedTags
$allowedFilters
$allowedMethods
$allowedProperties
$allowedFunctions
N/A

Properties

$allowedTags

$allowedTags : 

Type

$allowedFilters

$allowedFilters : 

Type

$allowedMethods

$allowedMethods : 

Type

$allowedProperties

$allowedProperties : 

Type

$allowedFunctions

$allowedFunctions : 

Type

Methods

__construct()

__construct(array  $allowedTags = array(), array  $allowedFilters = array(), array  $allowedMethods = array(), array  $allowedProperties = array(), array  $allowedFunctions = array()) 

Parameters

array $allowedTags
array $allowedFilters
array $allowedMethods
array $allowedProperties
array $allowedFunctions

setAllowedTags()

setAllowedTags(array  $tags) 

Parameters

array $tags

setAllowedFilters()

setAllowedFilters(array  $filters) 

Parameters

array $filters

setAllowedMethods()

setAllowedMethods(array  $methods) 

Parameters

array $methods

setAllowedProperties()

setAllowedProperties(array  $properties) 

Parameters

array $properties

setAllowedFunctions()

setAllowedFunctions(array  $functions) 

Parameters

array $functions

checkSecurity()

checkSecurity(  $tags,   $filters,   $functions) 

Parameters

$tags
$filters
$functions

checkMethodAllowed()

checkMethodAllowed(  $obj,   $method) 

Parameters

$obj
$method

checkPropertyAllowed()

checkPropertyAllowed(  $obj,   $property) 

Parameters

$obj
$property