Remove unnecessary user serialization
This commit is contained in:
parent
7ac3e575f1
commit
9810f30821
@ -25,7 +25,7 @@ use Wallabag\CoreBundle\Entity\Entry;
|
||||
* @UniqueEntity("email")
|
||||
* @UniqueEntity("username")
|
||||
*/
|
||||
class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface, \Serializable
|
||||
class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
@ -240,14 +240,4 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function serialize()
|
||||
{
|
||||
return serialize($this->id);
|
||||
}
|
||||
|
||||
public function unserialize($serialized)
|
||||
{
|
||||
$this->id = unserialize($serialized);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user