Skip to content

Commit

Permalink
Adding createdAt property to serialization
Browse files Browse the repository at this point in the history
The createdAt property was not serialized so the isExpired() method was not working as intended.
  • Loading branch information
Renrhaf authored and stloyd committed Feb 7, 2014
1 parent 668216b commit 071bd0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Security/Core/Authentication/Token/OAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public function serialize()
$this->rawToken,
$this->refreshToken,
$this->expiresIn,
$this->createdAt,
$this->resourceOwnerName,
parent::serialize()
));
Expand All @@ -245,6 +246,7 @@ public function unserialize($serialized)
$this->rawToken,
$this->refreshToken,
$this->expiresIn,
$this->createdAt,
$this->resourceOwnerName,
$parent,
) = unserialize($serialized);
Expand Down

0 comments on commit 071bd0d

Please sign in to comment.