class SecurityDataCollector extends DataCollector
SecurityDataCollector.
serialize() | from DataCollector | |
unserialize($data) | from DataCollector | |
__construct(SecurityContextInterface $context = null) | ||
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. | |
bool | 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. |
Collects data for the given Request and Response.
Checks if security is enabled.
Gets the user.
Gets the roles of the user.
Checks if the user is authenticated or not.
Get the class name of the security token.
Returns the name of the collector.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.html