SecurityPolicy

Implements\Twig\Sandbox\SecurityPolicyInterface

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

final
author

Fabien Potencier fabien@symfony.com

package

Default

Methods

__construct

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

Arguments

$allowedTags

array

$allowedFilters

array

$allowedMethods

array

$allowedProperties

array

$allowedFunctions

array

checkMethodAllowed

checkMethodAllowed( $obj, $method)

Arguments

$obj

$method

checkPropertyAllowed

checkPropertyAllowed( $obj, $property)

Arguments

$obj

$property

checkSecurity

checkSecurity( $tags, $filters, $functions)

Arguments

$tags

$filters

$functions

setAllowedFilters

setAllowedFilters(array $filters)

Arguments

$filters

array

setAllowedFunctions

setAllowedFunctions(array $functions)

Arguments

$functions

array

setAllowedMethods

setAllowedMethods(array $methods)

Arguments

$methods

array

setAllowedProperties

setAllowedProperties(array $properties)

Arguments

$properties

array

setAllowedTags

setAllowedTags(array $tags)

Arguments

$tags

array

Properties

allowedTags

allowedTags :

Type(s)

allowedFilters

allowedFilters :

Type(s)

allowedMethods

allowedMethods :

Type(s)

allowedProperties

allowedProperties :

Type(s)

allowedFunctions

allowedFunctions :

Type(s)