summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Token/AnonymousToken.php
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@sensiolabs.de>2016-11-28 08:59:03 +0100
committerChristian Flothmann <christian.flothmann@sensiolabs.de>2016-12-07 09:55:32 +0100
commita39290c2fc59213b11f62bbce19e366ac69dbf8b (patch)
treeb7621cb909b1756a5df39f05072b18ffebbb8fda /Core/Authentication/Token/AnonymousToken.php
parent63744a5bb1e02c4ce0e017d701882ac1587c79e0 (diff)
downloadsymfony-security-a39290c2fc59213b11f62bbce19e366ac69dbf8b.zip
symfony-security-a39290c2fc59213b11f62bbce19e366ac69dbf8b.tar.gz
symfony-security-a39290c2fc59213b11f62bbce19e366ac69dbf8b.tar.bz2
[Security] deprecate the RoleInterface
Diffstat (limited to 'Core/Authentication/Token/AnonymousToken.php')
-rw-r--r--Core/Authentication/Token/AnonymousToken.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Core/Authentication/Token/AnonymousToken.php b/Core/Authentication/Token/AnonymousToken.php
index 76c88ba..33b480c 100644
--- a/Core/Authentication/Token/AnonymousToken.php
+++ b/Core/Authentication/Token/AnonymousToken.php
@@ -11,7 +11,7 @@
namespace Symfony\Component\Security\Core\Authentication\Token;
-use Symfony\Component\Security\Core\Role\RoleInterface;
+use Symfony\Component\Security\Core\Role\Role;
/**
* AnonymousToken represents an anonymous token.
@@ -25,9 +25,9 @@ class AnonymousToken extends AbstractToken
/**
* Constructor.
*
- * @param string $secret A secret used to make sure the token is created by the app and not by a malicious client
- * @param string|object $user The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string
- * @param RoleInterface[] $roles An array of roles
+ * @param string $secret A secret used to make sure the token is created by the app and not by a malicious client
+ * @param string|object $user The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string
+ * @param Role[] $roles An array of roles
*/
public function __construct($secret, $user, array $roles = array())
{