Skip to content

Commit a494993

Browse files
Aluokjaviereguiluz
authored andcommitted
Remove deleted RoleInterface
As the master branch of symfony/symfony deleted the Symfony\Component\Security\Core\Role\RoleInterface as of 4.0, this update remove the interface to only mention the base class.
1 parent 905c0a4 commit a494993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/security/authorization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ Roles
168168
-----
169169

170170
Roles are objects that give expression to a certain right the user has.
171-
The only requirement is that they implement :class:`Symfony\\Component\\Security\\Core\\Role\\RoleInterface`,
172-
which means they should also have a :method:`Symfony\\Component\\Security\\Core\\Role\\RoleInterface::getRole`
171+
The only requirement is that they extend :class:`Symfony\\Component\\Security\\Core\\Role\\Role`,
172+
which means they have a :method:`Symfony\\Component\\Security\\Core\\Role\\Role::getRole`
173173
method that returns a string representation of the role itself. The default
174174
:class:`Symfony\\Component\\Security\\Core\\Role\\Role` simply returns its
175175
first constructor argument::

0 commit comments

Comments
 (0)