diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2010-12-16 22:27:16 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2010-12-18 08:10:53 +0100 |
commit | 31f146e12fa9b03f083d1f31b1eca0f0dd9c5b3d (patch) | |
tree | 7f64999a11c9ce8cd9de91669fa597a390c369bd /Authentication/Token | |
parent | a77e6b5f60bd1dac4d7ba19a900d72ae45d9fe26 (diff) | |
download | symfony-security-31f146e12fa9b03f083d1f31b1eca0f0dd9c5b3d.zip symfony-security-31f146e12fa9b03f083d1f31b1eca0f0dd9c5b3d.tar.gz symfony-security-31f146e12fa9b03f083d1f31b1eca0f0dd9c5b3d.tar.bz2 |
remove user provider name
Diffstat (limited to 'Authentication/Token')
-rw-r--r-- | Authentication/Token/Token.php | 13 | ||||
-rw-r--r-- | Authentication/Token/TokenInterface.php | 7 | ||||
-rw-r--r-- | Authentication/Token/UsernamePasswordToken.php | 3 |
3 files changed, 3 insertions, 20 deletions
diff --git a/Authentication/Token/Token.php b/Authentication/Token/Token.php index 37b7ded..8927c80 100644 --- a/Authentication/Token/Token.php +++ b/Authentication/Token/Token.php @@ -26,7 +26,6 @@ abstract class Token implements TokenInterface protected $roles; protected $authenticated; protected $user; - protected $userProviderName; protected $credentials; protected $immutable; @@ -167,14 +166,6 @@ abstract class Token implements TokenInterface } /** - * {@inheritDoc} - */ - public function getUserProviderName() - { - return $this->userProviderName; - } - - /** * {@inheritdoc} */ public function isImmutable() @@ -195,7 +186,7 @@ abstract class Token implements TokenInterface */ public function serialize() { - return serialize(array($this->user, $this->userProviderName, $this->credentials, $this->authenticated, $this->roles, $this->immutable)); + return serialize(array($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable)); } /** @@ -203,6 +194,6 @@ abstract class Token implements TokenInterface */ public function unserialize($serialized) { - list($this->user, $this->userProviderName, $this->credentials, $this->authenticated, $this->roles, $this->immutable) = unserialize($serialized); + list($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable) = unserialize($serialized); } } diff --git a/Authentication/Token/TokenInterface.php b/Authentication/Token/TokenInterface.php index 4f37522..2b50693 100644 --- a/Authentication/Token/TokenInterface.php +++ b/Authentication/Token/TokenInterface.php @@ -66,13 +66,6 @@ interface TokenInterface extends \Serializable function setUser($user); /** - * Returns a unique id for the user provider that was used to retrieve the user - * - * @return string - */ - function getUserProviderName(); - - /** * Checks if the user is authenticated or not. * * @return Boolean true if the token has been authenticated, false otherwise diff --git a/Authentication/Token/UsernamePasswordToken.php b/Authentication/Token/UsernamePasswordToken.php index ce11cb3..021a90e 100644 --- a/Authentication/Token/UsernamePasswordToken.php +++ b/Authentication/Token/UsernamePasswordToken.php @@ -21,13 +21,12 @@ class UsernamePasswordToken extends Token /** * Constructor. */ - public function __construct($user, $credentials, $userProviderName = null, array $roles = array()) + public function __construct($user, $credentials, array $roles = array()) { parent::__construct($roles); $this->setUser($user); $this->credentials = $credentials; - $this->userProviderName = $userProviderName; parent::setAuthenticated((Boolean) count($roles)); } |