File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Security/Acl/Domain Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Security \Acl \Domain ;
13
13
14
14
use Symfony \Component \Security \Acl \Model \SecurityIdentityInterface ;
15
- use Symfony \Component \Security \Core \Role \Role ;
15
+ use Symfony \Component \Security \Core \Role \RoleInterface ;
16
16
17
17
/**
18
18
* A SecurityIdentity implementation for roles
@@ -26,11 +26,11 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
26
26
/**
27
27
* Constructor
28
28
*
29
- * @param mixed $role a Role instance , or its string representation
29
+ * @param mixed $role an object implementing RoleInterface , or its string representation
30
30
*/
31
31
public function __construct ($ role )
32
32
{
33
- if ($ role instanceof Role ) {
33
+ if ($ role instanceof RoleInterface ) {
34
34
$ role = $ role ->getRole ();
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments