Merge pull request #11 from tricsusz/master
remove deprecated Serializable interface
This commit is contained in:
@@ -6,7 +6,7 @@ namespace ABEL\Bundle\keycloakBearerOnlyAdapterBundle\Security\User;
|
|||||||
|
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
use Symfony\Component\Security\Core\User\UserInterface;
|
||||||
|
|
||||||
class KeycloakBearerUser implements UserInterface, \Serializable
|
class KeycloakBearerUser implements UserInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
@@ -270,7 +270,7 @@ class KeycloakBearerUser implements UserInterface, \Serializable
|
|||||||
* @return string the string representation of the object or null
|
* @return string the string representation of the object or null
|
||||||
* @since 5.1.0
|
* @since 5.1.0
|
||||||
*/
|
*/
|
||||||
public function serialize()
|
public function __serialize()
|
||||||
{
|
{
|
||||||
return serialize(array(
|
return serialize(array(
|
||||||
$this->sub,
|
$this->sub,
|
||||||
@@ -293,7 +293,7 @@ class KeycloakBearerUser implements UserInterface, \Serializable
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 5.1.0
|
* @since 5.1.0
|
||||||
*/
|
*/
|
||||||
public function unserialize($serialized)
|
public function __unserialize($serialized)
|
||||||
{
|
{
|
||||||
list (
|
list (
|
||||||
$this->sub,
|
$this->sub,
|
||||||
|
|||||||
Reference in New Issue
Block a user