Skip to content

Commit c410eb0

Browse files
committed
Reword
1 parent a494993 commit c410eb0

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 extend :class:`Symfony\\Component\\Security\\Core\\Role\\Role`,
172-
which means they have a :method:`Symfony\\Component\\Security\\Core\\Role\\Role::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)