Skip to content

Commit 9084068

Browse files
alex88weaverryan
authored andcommitted
Updated "Load security users from database"
1 parent fac4580 commit 9084068

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cookbook/security/entity_provider.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ returns the list of related groups::
447447
*/
448448
public function serialize()
449449
{
450-
return \serialize(array(
450+
return serialize(array(
451451
$this->id,
452452
$this->username,
453453
$this->email,
454454
$this->salt,
455455
$this->password,
456-
$this->isActive
456+
$this->isActive,
457457
));
458458
}
459459

@@ -468,8 +468,8 @@ returns the list of related groups::
468468
$this->email,
469469
$this->salt,
470470
$this->password,
471-
$this->isActive
472-
) = \unserialize($serialized);
471+
$this->isActive,
472+
) = unserialize($serialized);
473473
}
474474
}
475475

@@ -535,10 +535,10 @@ that forces it to have a ``getRole()`` method::
535535
*/
536536
public function serialize()
537537
{
538-
return \serialize(array(
538+
return serialize(array(
539539
$this->id,
540540
$this->name,
541-
$this->role
541+
$this->role,
542542
));
543543
}
544544

@@ -550,8 +550,8 @@ that forces it to have a ``getRole()`` method::
550550
list(
551551
$this->id,
552552
$this->name,
553-
$this->role
554-
) = \unserialize($serialized);
553+
$this->role,
554+
) = unserialize($serialized);
555555
}
556556
}
557557

0 commit comments

Comments
 (0)