summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--Core/Role/Role.php18
-rw-r--r--Core/Role/SwitchUserRole.php18
3 files changed, 1 insertions, 36 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4175749..0093677 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,6 @@ CHANGELOG
2.1.0
-----
- * Added the Serializable interface on the Role class
* [BC BREAK] The signature of ExceptionListener has changed
* changed the HttpUtils constructor signature to take a UrlGenerator and a UrlMatcher instead of a Router
* EncoderFactoryInterface::getEncoder() can now also take a class name as an argument
diff --git a/Core/Role/Role.php b/Core/Role/Role.php
index 7f16302..5b50981 100644
--- a/Core/Role/Role.php
+++ b/Core/Role/Role.php
@@ -17,7 +17,7 @@ namespace Symfony\Component\Security\Core\Role;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
-class Role implements RoleInterface, \Serializable
+class Role implements RoleInterface
{
private $role;
@@ -38,20 +38,4 @@ class Role implements RoleInterface, \Serializable
{
return $this->role;
}
-
- /**
- * {@inheritdoc}
- */
- public function serialize()
- {
- return serialize($this->role);
- }
-
- /**
- * {@inheritdoc}
- */
- public function unserialize($serialized)
- {
- $this->role = unserialize($serialized);
- }
}
diff --git a/Core/Role/SwitchUserRole.php b/Core/Role/SwitchUserRole.php
index 3076f34..c679584 100644
--- a/Core/Role/SwitchUserRole.php
+++ b/Core/Role/SwitchUserRole.php
@@ -45,22 +45,4 @@ class SwitchUserRole extends Role
{
return $this->source;
}
-
- /**
- * {@inheritdoc}
- */
- public function serialize()
- {
- return serialize(array(parent::serialize(), $this->source));
- }
-
- /**
- * {@inheritdoc}
- */
- public function unserialize($serialized)
- {
- list($parent, $this->source) = unserialize($serialized);
-
- parent::unserialize($parent);
- }
}