SecurityDataCollector
class SecurityDataCollector extends DataCollector
SecurityDataCollector.
Methods
Constructor.
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 provider key (i.e. the name of the active firewall).
Returns the name of the collector.
Details
in DataCollector at line line 33
serialize()
in DataCollector at line line 38
unserialize($data)
at line line 40
__construct(TokenStorageInterface $tokenStorage = null, RoleHierarchyInterface $roleHierarchy = null, LogoutUrlGenerator $logoutUrlGenerator = null)
Constructor.
at line line 50
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
at line line 114
bool
isEnabled()
Checks if security is enabled.
at line line 124
string
getUser()
Gets the user.
at line line 134
array
getRoles()
Gets the roles of the user.
at line line 144
array
getInheritedRoles()
Gets the inherited roles of the user.
at line line 155
bool
supportsRoleHierarchy()
Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array.
at line line 165
bool
isAuthenticated()
Checks if the user is authenticated or not.
at line line 175
string
getTokenClass()
Get the class name of the security token.
at line line 185
string
getLogoutUrl()
Get the provider key (i.e. the name of the active firewall).
at line line 193
string
getName()
Returns the name of the collector.