SecurityDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes, Traits and Enums
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $accessDecisionManager : mixed
- $cloner : ClonerInterface
- $firewall : mixed
- $firewallMap : mixed
- $hasVarDumper : mixed
- $logoutUrlGenerator : mixed
- $roleHierarchy : mixed
- $tokenStorage : mixed
- __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.
- 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() : mixed
- {@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}
- serialize() : mixed
- supportsRoleHierarchy() : bool
- Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.
- unserialize() : mixed
- 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
ClonerInterface
$cloner
$firewall
private
mixed
$firewall
$firewallMap
private
mixed
$firewallMap
$hasVarDumper
private
mixed
$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
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response) : mixed
Parameters
- $request : Request
- $response : Response
Return values
mixed —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>|Data —getFirewall()
Returns the configuration of the current firewall context.
public
getFirewall() : array<string|int, mixed>|Data|null
Return values
array<string|int, mixed>|Data|null —getImpersonationExitPath()
public
getImpersonationExitPath() : string|null
Return values
string|null —getImpersonatorUser()
public
getImpersonatorUser() : string|null
Return values
string|null —getInheritedRoles()
Gets the inherited roles of the user.
public
getInheritedRoles() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|Data —getListeners()
public
getListeners() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|Data —getLogoutUrl()
Get the logout URL.
public
getLogoutUrl() : string|null
Return values
string|null —The logout URL
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getRoles()
Gets the roles of the user.
public
getRoles() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|Data —getToken()
Get the full security token class as Data object.
public
getToken() : Data|null
Return values
Data|null —getTokenClass()
Get the class name of the security token.
public
getTokenClass() : string|Data|null
Return values
string|Data|null —The token
getUser()
Gets the user.
public
getUser() : string
Return values
string —The user
getVoters()
Returns the FQCN of the security voters enabled in the application.
public
getVoters() : array<string|int, string>|Data
Return values
array<string|int, string>|Data —getVoterStrategy()
Returns the strategy configured for the security voters.
public
getVoterStrategy() : string
Return values
string —isAuthenticated()
Checks if the user is authenticated or not.
public
isAuthenticated() : bool
Return values
bool —true if the user is authenticated, false otherwise
isEnabled()
Checks if security is enabled.
public
isEnabled() : bool
Return values
bool —true if security is enabled, false otherwise
isImpersonated()
public
isImpersonated() : bool
Return values
bool —lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
{@inheritdoc}
public
reset() : mixed
Return values
mixed —serialize()
public
serialize() : mixed
Tags
Return values
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
bool —true if the profile was contains inherited role information
unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Tags
Return values
mixed —cloneVar()
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
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner