Skip to content

Commit

Permalink
[Security] Fix AuthenticationException serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
asm89 committed Jan 7, 2013
1 parent 50d5724 commit 2d7a7ba
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
Expand Up @@ -43,4 +43,27 @@ public function setUser(UserInterface $user)
{
$this->user = $user;
}

/**
* {@inheritDoc}
*/
public function serialize()
{
return serialize(array(
$this->user,
parent::serialize(),
));
}

/**
* {@inheritDoc}
*/
public function unserialize($str)
{
list(
$this->user,
$parentData
) = unserialize($str);
parent::unserialize($parentData);
}
}
Expand Up @@ -46,7 +46,7 @@ public function setToken(TokenInterface $token)
public function serialize()
{
return serialize(array(
$this->extraInformation,
$this->token,
$this->code,
$this->message,
$this->file,
Expand All @@ -57,7 +57,7 @@ public function serialize()
public function unserialize($str)
{
list(
$this->extraInformation,
$this->token,
$this->code,
$this->message,
$this->file,
Expand Down
Expand Up @@ -48,4 +48,27 @@ public function setUsername($username)
{
$this->username = $username;
}

/**
* {@inheritDoc}
*/
public function serialize()
{
return serialize(array(
$this->username,
parent::serialize(),
));
}

/**
* {@inheritDoc}
*/
public function unserialize($str)
{
list(
$this->username,
$parentData
) = unserialize($str);
parent::unserialize($parentData);
}
}

0 comments on commit 2d7a7ba

Please sign in to comment.