class SecurityDataCollector extends DataCollector
SecurityDataCollector.
serialize() | from DataCollector | |
unserialize($data) | from DataCollector | |
__construct(TokenStorageInterface $tokenStorage = null, RoleHierarchyInterface $roleHierarchy = null, LogoutUrlGenerator $logoutUrlGenerator = null, AccessDecisionManagerInterface $accessDecisionManager = null, FirewallMapInterface $firewallMap = null) Constructor. | ||
collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
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. | |
string | getTokenClass() Get the class name of the security token. | |
Data | getToken() Get the full security token class as Data object. | |
string | getLogoutUrl() Get the provider key (i.e. the name of the active firewall). | |
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. | |
string | getName() Returns the name of the collector. |
Constructor.
Collects data for the given Request and Response.
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.
Get the class name of the security token.
Get the full security token class as Data object.
Get the provider key (i.e. the name of the active firewall).
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.
Returns the name of the collector.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.html