summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik van Wingerden <eriwinnl@gmail.com>2016-05-09 09:52:08 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2016-05-09 12:47:55 -0500
commitb30108120781893f72f15af4b8ab297aee05432c (patch)
tree3e3258f845e58704d6854905dbc35098ff76e8fc
parentf9e167fde187546f3eb91f62d8de5ba36483a70a (diff)
downloadsymfony-security-b30108120781893f72f15af4b8ab297aee05432c.zip
symfony-security-b30108120781893f72f15af4b8ab297aee05432c.tar.gz
symfony-security-b30108120781893f72f15af4b8ab297aee05432c.tar.bz2
[2.3][Component/Security] Fixed phpdoc in AnonymousToken constructor for user param
-rw-r--r--Core/Authentication/Token/AnonymousToken.php2
-rw-r--r--Core/Authentication/Token/PreAuthenticatedToken.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Core/Authentication/Token/AnonymousToken.php b/Core/Authentication/Token/AnonymousToken.php
index 571816c..5f3241f 100644
--- a/Core/Authentication/Token/AnonymousToken.php
+++ b/Core/Authentication/Token/AnonymousToken.php
@@ -26,7 +26,7 @@ class AnonymousToken extends AbstractToken
* Constructor.
*
* @param string $key The key shared with the authentication provider
- * @param string $user The user
+ * @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
*/
public function __construct($key, $user, array $roles = array())
diff --git a/Core/Authentication/Token/PreAuthenticatedToken.php b/Core/Authentication/Token/PreAuthenticatedToken.php
index 1798203..5a3fc95 100644
--- a/Core/Authentication/Token/PreAuthenticatedToken.php
+++ b/Core/Authentication/Token/PreAuthenticatedToken.php
@@ -26,7 +26,7 @@ class PreAuthenticatedToken extends AbstractToken
/**
* Constructor.
*
- * @param string|object $user The user
+ * @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 mixed $credentials The user credentials
* @param string $providerKey The provider key
* @param RoleInterface[]|string[] $roles An array of roles