Twig_Sandbox_SecurityPolicy

Extends\Twig\Sandbox\SecurityPolicy

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

package

Default

Methods

__construct

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

Arguments

$allowedTags

array

$allowedFilters

array

$allowedMethods

array

$allowedProperties

array

$allowedFunctions

array

checkMethodAllowed

checkMethodAllowed( $obj, $method)
inherited

Arguments

$obj

$method

checkPropertyAllowed

checkPropertyAllowed( $obj, $property)
inherited

Arguments

$obj

$property

checkSecurity

checkSecurity( $tags, $filters, $functions)
inherited

Arguments

$tags

$filters

$functions

setAllowedFilters

setAllowedFilters(array $filters)
inherited

Arguments

$filters

array

setAllowedFunctions

setAllowedFunctions(array $functions)
inherited

Arguments

$functions

array

setAllowedMethods

setAllowedMethods(array $methods)
inherited

Arguments

$methods

array

setAllowedProperties

setAllowedProperties(array $properties)
inherited

Arguments

$properties

array

setAllowedTags

setAllowedTags(array $tags)
inherited

Arguments

$tags

array

Properties

allowedTags

allowedTags :
inherited

Type(s)

allowedFilters

allowedFilters :
inherited

Type(s)

allowedMethods

allowedMethods :
inherited

Type(s)

allowedProperties

allowedProperties :
inherited

Type(s)

allowedFunctions

allowedFunctions :
inherited

Type(s)