Security
extends ConfigurationAnnotation
in package
The Security class handles the Security annotation.
Tags
Table of Contents
- $message : string
- The message of the exception.
- $statusCode : int|null
- If set, will throw Symfony\Component\HttpKernel\Exception\HttpException with the given $statusCode.
- $expression : string
- The expression evaluated to allow or deny access.
- __construct() : mixed
- allowArray() : mixed
- getAliasName() : mixed
- getExpression() : mixed
- getMessage() : mixed
- getStatusCode() : mixed
- setExpression() : mixed
- setMessage() : mixed
- setStatusCode() : mixed
- setValue() : mixed
Properties
$message
The message of the exception.
protected
string
$message
= 'Access denied.'
$statusCode
If set, will throw Symfony\Component\HttpKernel\Exception\HttpException with the given $statusCode.
protected
int|null
$statusCode
If null, Symfony\Component\Security\Core\Exception\AccessDeniedException. will be used.
$expression
The expression evaluated to allow or deny access.
private
string
$expression
Methods
__construct()
public
__construct(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
Return values
mixed —allowArray()
public
allowArray() : mixed
Return values
mixed —getAliasName()
public
getAliasName() : mixed
Return values
mixed —getExpression()
public
getExpression() : mixed
Return values
mixed —getMessage()
public
getMessage() : mixed
Return values
mixed —getStatusCode()
public
getStatusCode() : mixed
Return values
mixed —setExpression()
public
setExpression(mixed $expression) : mixed
Parameters
- $expression : mixed
Return values
mixed —setMessage()
public
setMessage(mixed $message) : mixed
Parameters
- $message : mixed
Return values
mixed —setStatusCode()
public
setStatusCode(mixed $statusCode) : mixed
Parameters
- $statusCode : mixed
Return values
mixed —setValue()
public
setValue(mixed $expression) : mixed
Parameters
- $expression : mixed