SecurityDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $accessDecisionManager : mixed
- $cloner : mixed
- $firewall : mixed
- $firewallMap : mixed
- $hasVarDumper : bool
- $logoutUrlGenerator : mixed
- $roleHierarchy : mixed
- $tokenStorage : mixed
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getAccessDecisionLog() : array<string|int, mixed>|Data
- Returns the log of the security decisions made by the access decision manager.
- getAuthenticators() : array<string|int, mixed>|Data
- getFirewall() : array<string|int, mixed>|Data|null
- Returns the configuration of the current firewall context.
- getImpersonationExitPath() : string|null
- getImpersonatorUser() : string|null
- getInheritedRoles() : array<string|int, mixed>|Data
- Gets the inherited roles of the user.
- getListeners() : array<string|int, mixed>|Data
- getLogoutUrl() : string|null
- Get the logout URL.
- getName() : string
- {@inheritdoc}
- getRoles() : array<string|int, mixed>|Data
- Gets the roles of the user.
- getToken() : Data|null
- Get the full security token class as Data object.
- getTokenClass() : string|Data|null
- Get the class name of the security token.
- getUser() : string
- Gets the user.
- getVoters() : array<string|int, string>|Data
- Returns the FQCN of the security voters enabled in the application.
- getVoterStrategy() : string
- Returns the strategy configured for the security voters.
- isAuthenticated() : bool
- Checks if the user is authenticated or not.
- isEnabled() : bool
- Checks if security is enabled.
- isImpersonated() : bool
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- supportsRoleHierarchy() : bool
- Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$accessDecisionManager
private
mixed
$accessDecisionManager
$cloner
private
mixed
$cloner
$firewall
private
mixed
$firewall
$firewallMap
private
mixed
$firewallMap
$hasVarDumper
private
bool
$hasVarDumper
$logoutUrlGenerator
private
mixed
$logoutUrlGenerator
$roleHierarchy
private
mixed
$roleHierarchy
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct([TokenStorageInterface $tokenStorage = null ][, RoleHierarchyInterface $roleHierarchy = null ][, LogoutUrlGenerator $logoutUrlGenerator = null ][, AccessDecisionManagerInterface $accessDecisionManager = null ][, FirewallMapInterface $firewallMap = null ][, TraceableFirewallListener $firewall = null ]) : mixed
Parameters
- $tokenStorage : TokenStorageInterface = null
- $roleHierarchy : RoleHierarchyInterface = null
- $logoutUrlGenerator : LogoutUrlGenerator = null
- $accessDecisionManager : AccessDecisionManagerInterface = null
- $firewallMap : FirewallMapInterface = null
- $firewall : TraceableFirewallListener = null
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getAccessDecisionLog()
Returns the log of the security decisions made by the access decision manager.
public
getAccessDecisionLog() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetAuthenticators()
public
getAuthenticators() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetFirewall()
Returns the configuration of the current firewall context.
public
getFirewall() : array<string|int, mixed>|Data|null
Return values
array<string|int, mixed>|Data|nullgetImpersonationExitPath()
public
getImpersonationExitPath() : string|null
Return values
string|nullgetImpersonatorUser()
public
getImpersonatorUser() : string|null
Return values
string|nullgetInheritedRoles()
Gets the inherited roles of the user.
public
getInheritedRoles() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetListeners()
public
getListeners() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetLogoutUrl()
Get the logout URL.
public
getLogoutUrl() : string|null
Return values
string|nullgetName()
{@inheritdoc}
public
getName() : string
Return values
stringgetRoles()
Gets the roles of the user.
public
getRoles() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetToken()
Get the full security token class as Data object.
public
getToken() : Data|null
Return values
Data|nullgetTokenClass()
Get the class name of the security token.
public
getTokenClass() : string|Data|null
Return values
string|Data|nullgetUser()
Gets the user.
public
getUser() : string
Return values
stringgetVoters()
Returns the FQCN of the security voters enabled in the application.
public
getVoters() : array<string|int, string>|Data
Return values
array<string|int, string>|DatagetVoterStrategy()
Returns the strategy configured for the security voters.
public
getVoterStrategy() : string
Return values
stringisAuthenticated()
Checks if the user is authenticated or not.
public
isAuthenticated() : bool
Return values
boolisEnabled()
Checks if security is enabled.
public
isEnabled() : bool
Return values
boolisImpersonated()
public
isImpersonated() : bool
Return values
boollateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
public
reset() : mixed
supportsRoleHierarchy()
Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.
public
supportsRoleHierarchy() : bool
Return values
boolcloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner