Documentation

SecurityPolicy
in package
implements SecurityPolicyInterface

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

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes and Traits

SecurityPolicyInterface
Interface that all security policy classes must implements.

Table of Contents

$allowedFilters  : mixed
$allowedFunctions  : mixed
$allowedMethods  : mixed
$allowedProperties  : mixed
$allowedTags  : mixed
__construct()  : mixed
checkMethodAllowed()  : mixed
checkPropertyAllowed()  : mixed
checkSecurity()  : mixed
setAllowedFilters()  : mixed
setAllowedFunctions()  : mixed
setAllowedMethods()  : mixed
setAllowedProperties()  : mixed
setAllowedTags()  : mixed

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $allowedTags = [] ][, array<string|int, mixed> $allowedFilters = [] ][, array<string|int, mixed> $allowedMethods = [] ][, array<string|int, mixed> $allowedProperties = [] ][, array<string|int, mixed> $allowedFunctions = [] ]) : mixed
Parameters
$allowedTags : array<string|int, mixed> = []
$allowedFilters : array<string|int, mixed> = []
$allowedMethods : array<string|int, mixed> = []
$allowedProperties : array<string|int, mixed> = []
$allowedFunctions : array<string|int, mixed> = []
Return values
mixed

checkMethodAllowed()

public checkMethodAllowed(mixed $obj, mixed $method) : mixed
Parameters
$obj : mixed
$method : mixed
Return values
mixed

checkPropertyAllowed()

public checkPropertyAllowed(mixed $obj, mixed $property) : mixed
Parameters
$obj : mixed
$property : mixed
Return values
mixed

checkSecurity()

public checkSecurity(mixed $tags, mixed $filters, mixed $functions) : mixed
Parameters
$tags : mixed
$filters : mixed
$functions : mixed
Return values
mixed

setAllowedFilters()

public setAllowedFilters(array<string|int, mixed> $filters) : mixed
Parameters
$filters : array<string|int, mixed>
Return values
mixed

setAllowedFunctions()

public setAllowedFunctions(array<string|int, mixed> $functions) : mixed
Parameters
$functions : array<string|int, mixed>
Return values
mixed

setAllowedMethods()

public setAllowedMethods(array<string|int, mixed> $methods) : mixed
Parameters
$methods : array<string|int, mixed>
Return values
mixed

setAllowedProperties()

public setAllowedProperties(array<string|int, mixed> $properties) : mixed
Parameters
$properties : array<string|int, mixed>
Return values
mixed

setAllowedTags()

public setAllowedTags(array<string|int, mixed> $tags) : mixed
Parameters
$tags : array<string|int, mixed>
Return values
mixed

Search results