Documentation

SecurityDataCollector extends DataCollector
in package
implements LateDataCollectorInterface

DataCollector.

Tags
author

Fabien Potencier fabien@symfony.com

final

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

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>

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

getInheritedRoles()

Gets the inherited roles of the user.

public getInheritedRoles() : 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

getRoles()

Gets the roles of the user.

public getRoles() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|Data

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

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

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


        
On this page

Search results