]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove unnecessary user serialization 2177/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 19:16:40 +0000 (21:16 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 19:16:40 +0000 (21:16 +0200)
src/Wallabag/UserBundle/Entity/User.php

index ae12e5d54829b2860821ff389982a3673fd734b7..d98ae76a533d5871f0befb514b13fbaab4ec9a98 100644 (file)
@@ -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);
-    }
 }