SecurityPolicyLegacy is a security policy using a block-list

  • Twig\Sandbox\SecurityPolicyInterface

Protected Properties

protected array $blockedClassMethods

blockedClassMethods is a list of forbidden classes and methods

protected array $blockedClasses

blockedClasses is a list of forbidden classes

protected array $blockedProperties

blockedProperties is a list of forbidden properties

protected array $blockedMethods

blockedMethods is a list of forbidden methods

Public Methods

public __construct()

public __construct(): void

public checkMethodAllowed()

public checkMethodAllowed($obj, $method): void 

public checkPropertyAllowed()

public checkPropertyAllowed($obj, $property): void 

public checkSecurity()

public checkSecurity($tags, $filters, $functions): void