SecurityExtension
extends AbstractExtension
in package
FinalYes
SecurityExtension exposes security context features.
Tags
Table of Contents
Properties
- $impersonateUrlGenerator : mixed
- $securityChecker : mixed
Methods
- __construct() : mixed
- getFilters() : array<string|int, TwigFilter>
- Returns a list of filters to add to the existing list.
- getFunctions() : array<string|int, TwigFunction>
- Returns a list of functions to add to the existing list.
- getImpersonateExitPath() : string
- getImpersonateExitUrl() : string
- getNodeVisitors() : array<string|int, NodeVisitorInterface>
- Returns the node visitor instances to add to the existing list.
- getOperators() : array<string|int, array<string|int, mixed>>
- Returns a list of operators to add to the existing list.
- getTests() : array<string|int, TwigTest>
- Returns a list of tests to add to the existing list.
- getTokenParsers() : array<string|int, TokenParserInterface>
- Returns the token parser instances to add to the existing list.
- isGranted() : bool
Properties
$impersonateUrlGenerator
private
mixed
$impersonateUrlGenerator
$securityChecker
private
mixed
$securityChecker
Methods
__construct()
public
__construct([AuthorizationCheckerInterface $securityChecker = null ][, ImpersonateUrlGenerator $impersonateUrlGenerator = null ]) : mixed
Parameters
- $securityChecker : AuthorizationCheckerInterface = null
- $impersonateUrlGenerator : ImpersonateUrlGenerator = null
getFilters()
Returns a list of filters to add to the existing list.
public
getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter>getFunctions()
Returns a list of functions to add to the existing list.
public
getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction>getImpersonateExitPath()
public
getImpersonateExitPath([string $exitTo = null ]) : string
Parameters
- $exitTo : string = null
Return values
stringgetImpersonateExitUrl()
public
getImpersonateExitUrl([string $exitTo = null ]) : string
Parameters
- $exitTo : string = null
Return values
stringgetNodeVisitors()
Returns the node visitor instances to add to the existing list.
public
getNodeVisitors() : array<string|int, NodeVisitorInterface>
Return values
array<string|int, NodeVisitorInterface>getOperators()
Returns a list of operators to add to the existing list.
public
getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —First array of unary operators, second array of binary operators
getTests()
Returns a list of tests to add to the existing list.
public
getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest>getTokenParsers()
Returns the token parser instances to add to the existing list.
public
getTokenParsers() : array<string|int, TokenParserInterface>
Return values
array<string|int, TokenParserInterface>isGranted()
public
isGranted(mixed $role[, mixed $object = null ][, string $field = null ]) : bool
Parameters
- $role : mixed
- $object : mixed = null
- $field : string = null