(Role|string)[] getRoles()
Returns the roles granted to the user.
public function getRoles()
{
return array('ROLE_USER');
}
Alternatively, the roles might be stored on a roles
property, and populated in any number of different ways when the user object is created.
Please login to continue.