Documentation

SecurityNotAllowedMethodError extends SecurityError
in package

Exception thrown when a not allowed class method is used in a template.

Tags
author

Kit Burton-Senior mail@kitbs.com

final

Table of Contents

$className  : mixed
$lineno  : mixed
$methodName  : mixed
$name  : mixed
$rawMessage  : mixed
$sourceCode  : mixed
$sourcePath  : mixed
__construct()  : mixed
appendMessage()  : mixed
getClassName()  : mixed
getMethodName()  : mixed
getRawMessage()  : string
Gets the raw message.
getSourceContext()  : Source|null
Gets the source context of the Twig template where the error occurred.
getTemplateLine()  : int
Gets the template line where the error occurred.
guess()  : mixed
setSourceContext()  : mixed
Sets the source context of the Twig template where the error occurred.
setTemplateLine()  : mixed
Sets the template line where the error occurred.
guessTemplateInfo()  : mixed
updateRepr()  : mixed

Properties

$lineno

private mixed $lineno

$rawMessage

private mixed $rawMessage

$sourceCode

private mixed $sourceCode

$sourcePath

private mixed $sourcePath

Methods

__construct()

public __construct(string $message, string $className, string $methodName[, int $lineno = -1 ][, string $filename = null ][, Exception $previous = null ]) : mixed
Parameters
$message : string
$className : string
$methodName : string
$lineno : int = -1
$filename : string = null
$previous : Exception = null
Return values
mixed

appendMessage()

public appendMessage(mixed $rawMessage) : mixed
Parameters
$rawMessage : mixed
Return values
mixed

getRawMessage()

Gets the raw message.

public getRawMessage() : string
Return values
string

The raw message

getSourceContext()

Gets the source context of the Twig template where the error occurred.

public getSourceContext() : Source|null
Return values
Source|null

getTemplateLine()

Gets the template line where the error occurred.

public getTemplateLine() : int
Return values
int

The template line

guess()

public guess() : mixed
Return values
mixed

setSourceContext()

Sets the source context of the Twig template where the error occurred.

public setSourceContext([Source $source = null ]) : mixed
Parameters
$source : Source = null
Return values
mixed

setTemplateLine()

Sets the template line where the error occurred.

public setTemplateLine(int $lineno) : mixed
Parameters
$lineno : int

The template line

Return values
mixed

guessTemplateInfo()

private guessTemplateInfo() : mixed
Return values
mixed

updateRepr()

private updateRepr() : mixed
Return values
mixed

Search results