Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite07a221

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 RoleInterfaceAs 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 Reworda494993 Remove deleted RoleInterface
2 parents905c0a4 +c410eb0 commite07a221

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)

[8]ページ先頭

©2009-2025 Movatter.jp