Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector
SecurityDataCollector.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class SecurityDataCollector
extends DataCollector
{
- // members
- private $context;
- // Inherited members from DataCollector
- protected $data;
- // methods
- public void __construct()
- public void collect()
- public Boolean isEnabled()
- public string getUser()
- public array getRoles()
- public Boolean isAuthenticated()
- public string getTokenClass()
- public void getName()
- // Inherited methods from DataCollector
- public void serialize()
- public void unserialize()
- protected string varToString()
Hierarchy
Members
private
- $context
protected
- $data
Methods
public
- __construct()
- collect() — {@inheritdoc}
- getName() — {@inheritdoc}
- getRoles() — Gets the roles of the user.
- getTokenClass() — Get the class name of the security token.
- getUser() — Gets the user.
- isAuthenticated() — Checks if the user is authenticated or not.
- isEnabled() — Checks if security is enabled.
Inherited from Symfony\Component\HttpKernel\DataCollector\DataCollector
protected
- varToString() — Converts a PHP variable to a string.