class SecurityDataCollector extends DataCollector
SecurityDataCollector.
Methods
| __construct(SecurityContextInterface $context = null) | ||
|
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response. |
||
| Boolean |
isEnabled()
Checks if security is enabled. |
|
| string |
getUser()
Gets the user. |
|
| array |
getRoles()
Gets the roles of the user. |
|
| Boolean |
isAuthenticated()
Checks if the user is authenticated or not. |
|
| string |
getTokenClass()
Get the class name of the security token. |
|
| string |
getName()
Returns the name of the collector. |
Details
at line 28
public
__construct(SecurityContextInterface $context = null)
at line 36
public
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
at line 70
public Boolean
isEnabled()
Checks if security is enabled.
at line 80
public string
getUser()
Gets the user.
at line 90
public array
getRoles()
Gets the roles of the user.
at line 100
public Boolean
isAuthenticated()
Checks if the user is authenticated or not.
at line 110
public string
getTokenClass()
Get the class name of the security token.
at line 118
public string
getName()
Returns the name of the collector.