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

Commitda5ec3b

Browse files
author
Wim Vandersmissen
committed
small fix for RoleSecurityIdentity
1 parent6b94407 commitda5ec3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespaceSymfony\Component\Security\Acl\Domain;
1313

1414
useSymfony\Component\Security\Acl\Model\SecurityIdentityInterface;
15-
useSymfony\Component\Security\Core\Role\Role;
15+
useSymfony\Component\Security\Core\Role\RoleInterface;
1616

1717
/**
1818
* A SecurityIdentity implementation for roles
@@ -26,11 +26,11 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
2626
/**
2727
* Constructor
2828
*
29-
* @param mixed $rolea Role instance, or its string representation
29+
* @param mixed $rolean object implementing RoleInterface, or its string representation
3030
*/
3131
publicfunction__construct($role)
3232
{
33-
if ($roleinstanceofRole) {
33+
if ($roleinstanceofRoleInterface) {
3434
$role =$role->getRole();
3535
}
3636

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp