SecurityPolicy
in package
The sandbox security policy instance.
This class allows you to white-list some tags, filters, properties, and methods.
Table of Contents
- $allowedFilters : array<string|int, string>
- $allowedFunctions : array<string|int, string>
- $allowedMethods : array<string|int, string>
- $allowedProperties : array<string|int, string>
- $allowedTags : array<string|int, string>
- getPolicy() : SecurityPolicy
- Gets the sandbox security policy.
Properties
$allowedFilters
private
array<string|int, string>
$allowedFilters
= ['escape', 'lower', 'upper', 'date', 'split']
Allowed filters
$allowedFunctions
private
array<string|int, string>
$allowedFunctions
= ['YFParser']
Allowed functions
$allowedMethods
private
array<string|int, string>
$allowedMethods
= []
Allowed methods
$allowedProperties
private
array<string|int, string>
$allowedProperties
= []
Allowed properties
$allowedTags
private
array<string|int, string>
$allowedTags
= ['if', 'for', 'set']
Allowed tags
Methods
getPolicy()
Gets the sandbox security policy.
public
static getPolicy() : SecurityPolicy