SecurityDataCollector
class SecurityDataCollector extends DataCollector implements LateDataCollectorInterface
Properties
protected | $data | from DataCollector |
Methods
Converts the variable into a serializable Data instance.
No description
No description
Collects data as late as possible.
Checks if security is enabled.
Gets the user.
Gets the roles of the user.
Gets the inherited roles of the user.
Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.
Checks if the user is authenticated or not.
No description
No description
No description
Get the class name of the security token.
Get the logout URL.
Returns the FQCN of the security voters enabled in the application.
Returns the strategy configured for the security voters.
Returns the log of the security decisions made by the access decision manager.
Returns the configuration of the current firewall context.
No description
Returns the name of the collector.
Details
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.
__construct(TokenStorageInterface $tokenStorage = null, RoleHierarchyInterface $roleHierarchy = null, LogoutUrlGenerator $logoutUrlGenerator = null, AccessDecisionManagerInterface $accessDecisionManager = null, FirewallMapInterface $firewallMap = null, TraceableFirewallListener $firewall = null)
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
bool
supportsRoleHierarchy()
Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.