diff options
author | Titouan Galopin <galopintitouan@gmail.com> | 2015-08-06 22:13:51 +0200 |
---|---|---|
committer | Titouan Galopin <galopintitouan@gmail.com> | 2015-08-07 09:22:48 +0200 |
commit | e8a908c89e4be6db9d4b901086ae4d4e1e2c44eb (patch) | |
tree | e90a9727e555821bd9f4ad0921b3e224e8361be5 /Core/Authentication | |
parent | 6c3c1e2f6886107956e165ab236f34c159187e16 (diff) | |
download | symfony-security-e8a908c89e4be6db9d4b901086ae4d4e1e2c44eb.zip symfony-security-e8a908c89e4be6db9d4b901086ae4d4e1e2c44eb.tar.gz symfony-security-e8a908c89e4be6db9d4b901086ae4d4e1e2c44eb.tar.bz2 |
Diffstat (limited to 'Core/Authentication')
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 2 | ||||
-rw-r--r-- | Core/Authentication/Token/PreAuthenticatedToken.php | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index a2aefb1..b07312f 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -33,7 +33,7 @@ abstract class AbstractToken implements TokenInterface /** * Constructor. * - * @param RoleInterface[] $roles An array of roles + * @param RoleInterface[]|string[] $roles An array of roles * * @throws \InvalidArgumentException */ diff --git a/Core/Authentication/Token/PreAuthenticatedToken.php b/Core/Authentication/Token/PreAuthenticatedToken.php index abcd2bf..1798203 100644 --- a/Core/Authentication/Token/PreAuthenticatedToken.php +++ b/Core/Authentication/Token/PreAuthenticatedToken.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Security\Core\Authentication\Token; +use Symfony\Component\Security\Core\Role\RoleInterface; + /** * PreAuthenticatedToken implements a pre-authenticated token. * @@ -23,6 +25,11 @@ class PreAuthenticatedToken extends AbstractToken /** * Constructor. + * + * @param string|object $user The user + * @param mixed $credentials The user credentials + * @param string $providerKey The provider key + * @param RoleInterface[]|string[] $roles An array of roles */ public function __construct($user, $credentials, $providerKey, array $roles = array()) { |