diff options
Diffstat (limited to 'Core/Authentication/Token/Token.php')
-rw-r--r-- | Core/Authentication/Token/Token.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Core/Authentication/Token/Token.php b/Core/Authentication/Token/Token.php index d41bab5..e4e5d55 100644 --- a/Core/Authentication/Token/Token.php +++ b/Core/Authentication/Token/Token.php @@ -28,6 +28,7 @@ abstract class Token implements TokenInterface protected $user; protected $credentials; protected $immutable; + protected $providerKey; /** * Constructor. @@ -184,9 +185,17 @@ abstract class Token implements TokenInterface /** * {@inheritdoc} */ + public function getProviderKey() + { + return $this->providerKey; + } + + /** + * {@inheritdoc} + */ public function serialize() { - return serialize(array($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable)); + return serialize(array($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable, $this->providerKey)); } /** @@ -194,6 +203,6 @@ abstract class Token implements TokenInterface */ public function unserialize($serialized) { - list($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable) = unserialize($serialized); + list($this->user, $this->credentials, $this->authenticated, $this->roles, $this->immutable, $this->providerKey) = unserialize($serialized); } } |