Skip to content

Commit e07a221

Browse files
committed
minor #10058 Remove deleted RoleInterface (Aluok, javiereguiluz)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #10058). Discussion ---------- 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. Commits ------- c410eb0 Reword a494993 Remove deleted RoleInterface
2 parents 905c0a4 + c410eb0 commit e07a221

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

components/security/authorization.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,11 @@ role::
167167
Roles
168168
-----
169169

170-
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`
173-
method that returns a string representation of the role itself. The default
174-
:class:`Symfony\\Component\\Security\\Core\\Role\\Role` simply returns its
175-
first constructor argument::
170+
Roles are objects that give expression to a certain right the user has. The only
171+
requirement is that they must define a ``getRole()`` method that returns a
172+
string representation of the role itself. To do so, you can optionally extend
173+
from the default :class:`Symfony\\Component\\Security\\Core\\Role\\Role` class,
174+
which returns its first constructor argument in this method::
176175

177176
use Symfony\Component\Security\Core\Role\Role;
178177

0 commit comments

Comments
 (0)