diff options
Diffstat (limited to 'Core/Exception/UsernameNotFoundException.php')
-rw-r--r-- | Core/Exception/UsernameNotFoundException.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Core/Exception/UsernameNotFoundException.php b/Core/Exception/UsernameNotFoundException.php index 421fada..9a9989f 100644 --- a/Core/Exception/UsernameNotFoundException.php +++ b/Core/Exception/UsernameNotFoundException.php @@ -48,4 +48,27 @@ class UsernameNotFoundException extends AuthenticationException { $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); + } } |