1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-31 18:31:02 +00:00
This commit is contained in:
Thomas Citharel 2016-06-26 13:36:53 +02:00 committed by Jeremy Benoist
parent d9b0673dbb
commit e4b46f77ef
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
14 changed files with 65 additions and 1 deletions

View file

@ -25,7 +25,7 @@ use Wallabag\CoreBundle\Entity\Entry;
* @UniqueEntity("email")
* @UniqueEntity("username")
*/
class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface
class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface, \Serializable
{
/**
* @var int
@ -240,4 +240,14 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
return false;
}
public function serialize()
{
return serialize($this->id);
}
public function unserialize($serialized)
{
$this->id = unserialize($serialized);
}
}