RoleInterface deprecated

RoleInterface deprecated

interface RoleInterface

deprecated

The RoleInterface is deprecated since version 3.3 and will be removed in 4.0. Extend the Symfony\Component\Security\Core\Role\Role class instead.

RoleInterface represents a role granted to a user.

A role must either have a string representation or it needs to be explicitly supported by at least one AccessDecisionManager.

Methods

string|null getRole()

Returns the role.

Details

string|null getRole()

Returns the role.

This method returns a string rep