$this->policy->
checkSecurity($tags,
$filters,
$functions);
} } public function checkMethodAllowed($obj,
$method, int
$lineno = -1, Source
$source = null
): void
{ if ($this->
isSandboxed()) { try { $this->policy->
checkMethodAllowed($obj,
$method);
} catch (SecurityNotAllowedMethodError
$e) { $e->
setSourceContext($source);
$e->
setTemplateLine($lineno);
throw $e;
} } } public function checkPropertyAllowed($obj,
$property, int
$lineno = -1, Source
$source = null
): void
{ if ($this->
isSandboxed()) { try { $this->policy->
checkPropertyAllowed($obj,
$property);
}