aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-08 21:16:40 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-08 21:16:40 +0200
commit9810f30821105f6340b64e8bdca9f91b9da8a6ba (patch)
treea5b2ce9de000862aa86c75c4c5facd791d6035ba /src
parent7ac3e575f1285a07987346461cee9445ac8c0b3b (diff)
downloadwallabag-9810f30821105f6340b64e8bdca9f91b9da8a6ba.tar.gz
wallabag-9810f30821105f6340b64e8bdca9f91b9da8a6ba.tar.zst
wallabag-9810f30821105f6340b64e8bdca9f91b9da8a6ba.zip
Remove unnecessary user serialization
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/UserBundle/Entity/User.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php
index ae12e5d5..d98ae76a 100644
--- a/src/Wallabag/UserBundle/Entity/User.php
+++ b/src/Wallabag/UserBundle/Entity/User.php
@@ -25,7 +25,7 @@ use Wallabag\CoreBundle\Entity\Entry;
25 * @UniqueEntity("email") 25 * @UniqueEntity("email")
26 * @UniqueEntity("username") 26 * @UniqueEntity("username")
27 */ 27 */
28class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface, \Serializable 28class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterface
29{ 29{
30 /** 30 /**
31 * @var int 31 * @var int
@@ -240,14 +240,4 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
240 240
241 return false; 241 return false;
242 } 242 }
243
244 public function serialize()
245 {
246 return serialize($this->id);
247 }
248
249 public function unserialize($serialized)
250 {
251 $this->id = unserialize($serialized);
252 }
253} 243}