summaryrefslogtreecommitdiffstats
path: root/Core/Role
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-07-15 14:58:33 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2012-07-15 14:58:33 +0200
commita6f3f99859e3638dd15de4552e204ad288c6c43a (patch)
tree10972ed615923ce8dd33001d0ae95c813feb7a37 /Core/Role
parentb7823dc1c0f06e647303b8a15a78316259134b5f (diff)
downloadsymfony-security-a6f3f99859e3638dd15de4552e204ad288c6c43a.zip
symfony-security-a6f3f99859e3638dd15de4552e204ad288c6c43a.tar.gz
symfony-security-a6f3f99859e3638dd15de4552e204ad288c6c43a.tar.bz2
Revert "merged branch stof/serializable_role (PR #4925)"
This reverts commit b0750f6dcd1e6f8b1be2c1e6604d4cbb785c9a8e, reversing changes made to d09bfe7552148d1d36b65487dfcbd378830b55a0.
Diffstat (limited to 'Core/Role')
-rw-r--r--Core/Role/Role.php18
-rw-r--r--Core/Role/SwitchUserRole.php18
2 files changed, 1 insertions, 35 deletions
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);
- }
}