10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef29276 commit 5aae161Copy full SHA for 5aae161
src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php
@@ -12,7 +12,7 @@
12
namespace Symfony\Component\Security\Acl\Domain;
13
14
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
15
-use Symfony\Component\Security\Core\Role\Role;
+use Symfony\Component\Security\Core\Role\RoleInterface;
16
17
/**
18
* A SecurityIdentity implementation for roles
@@ -30,7 +30,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
30
*/
31
public function __construct($role)
32
{
33
- if ($role instanceof Role) {
+ if ($role instanceof RoleInterface) {
34
$role = $role->getRole();
35
}
36
0 commit comments