class SecurityDataCollector extends DataCollector implements LateDataCollectorInterface

Properties

protected $data from DataCollector

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

__construct(TokenStorageInterface $tokenStorage = null, RoleHierarchyInterface $roleHierarchy = null, LogoutUrlGenerator $logoutUrlGenerator = null, AccessDecisionManagerInterface $accessDecisionManager = null, FirewallMapInterface $firewallMap = null, TraceableFirewallListener $firewall = null)

No description

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

reset()

Resets this data collector to its initial state.

lateCollect()

Collects data as late as possible.

bool
isEnabled()

Checks if security is enabled.

string
getUser()

Gets the user.

array
getRoles()

Gets the roles of the user.

array
getInheritedRoles()

Gets the inherited roles of the user.

bool
supportsRoleHierarchy()

Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.

bool
isAuthenticated()

Checks if the user is authenticated or not.

isImpersonated()

No description

getImpersonatorUser()

No description

getImpersonationExitPath()

No description

string
getTokenClass()

Get the class name of the security token.

getToken()

Get the full security token class as Data object.

string
getLogoutUrl()

Get the logout URL.

string[]
getVoters()

Returns the FQCN of the security voters enabled in the application.

string
getVoterStrategy()

Returns the strategy configured for the security voters.

array
getAccessDecisionLog()

Returns the log of the security decisions made by the access decision manager.

array
getFirewall()

Returns the configuration of the current firewall context.

getListeners()

No description

string
getName()

Returns the name of the collector.

Details

in DataCollector at line 37
serialize()

in DataCollector at line 42
unserialize($data)

Parameters

$data

in DataCollector at line 57
protected Data cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

This array can be displayed in the template using the VarDumper component.

Parameters

mixed $var

Return Value

Data

in DataCollector at line 77
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

at line 45
__construct(TokenStorageInterface $tokenStorage = null, RoleHierarchyInterface $roleHierarchy = null, LogoutUrlGenerator $logoutUrlGenerator = null, AccessDecisionManagerInterface $accessDecisionManager = null, FirewallMapInterface $firewallMap = null, TraceableFirewallListener $firewall = null)

Parameters

TokenStorageInterface $tokenStorage
RoleHierarchyInterface $roleHierarchy
LogoutUrlGenerator $logoutUrlGenerator
AccessDecisionManagerInterface $accessDecisionManager
FirewallMapInterface $firewallMap
TraceableFirewallListener $firewall

at line 59
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

at line 192
reset()

Resets this data collector to its initial state.

at line 197
lateCollect()

Collects data as late as possible.

at line 207
bool isEnabled()

Checks if security is enabled.

Return Value

bool true if security is enabled, false otherwise

at line 217
string getUser()

Gets the user.

Return Value

string The user

at line 227
array getRoles()

Gets the roles of the user.

Return Value

array The roles

at line 237
array getInheritedRoles()

Gets the inherited roles of the user.

Return Value

array The inherited roles

at line 248
bool supportsRoleHierarchy()

Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.

Return Value

bool true if the profile was contains inherited role information

at line 258
bool isAuthenticated()

Checks if the user is authenticated or not.

Return Value

bool true if the user is authenticated, false otherwise

at line 263
isImpersonated()

at line 268
getImpersonatorUser()

at line 273
getImpersonationExitPath()

at line 283
string getTokenClass()

Get the class name of the security token.

Return Value

string The token

at line 293
Data getToken()

Get the full security token class as Data object.

Return Value

Data

at line 303
string getLogoutUrl()

Get the logout URL.

Return Value

string The logout URL

at line 313
string[] getVoters()

Returns the FQCN of the security voters enabled in the application.

Return Value

string[]

at line 323
string getVoterStrategy()

Returns the strategy configured for the security voters.

Return Value

string

at line 333
array getAccessDecisionLog()

Returns the log of the security decisions made by the access decision manager.

Return Value

array

at line 343
array getFirewall()

Returns the configuration of the current firewall context.

Return Value

array

at line 348
getListeners()

at line 356
string getName()

Returns the name of the collector.

Return Value

string The collector name