Skip to content

Commit 03e9b7b

Browse files
committed
minor #16700 Fix invalid interface mention in security.rst (ttibensky)
This PR was merged into the 5.4 branch. Discussion ---------- Fix invalid interface mention in security.rst SerializableInterface doesn't exist, I assume it was meant to be https://www.php.net/manual/en/class.serializable.php, the motivation behind this change is described here https://stackoverflow.com/questions/42074225/symfony-userinterface-is-serializing-the-entire-massive-user-entity/71816482#71816482 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 6e7b827 No longer mention a deprecated interface c1993e8 Fix invalid interface mention in security.rst
2 parents 48c4f98 + 6e7b827 commit 03e9b7b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

security.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,9 +2503,10 @@ However, in some cases, this process can cause unexpected authentication problem
25032503
If you're having problems authenticating, it could be that you *are* authenticating
25042504
successfully, but you immediately lose authentication after the first redirect.
25052505

2506-
In that case, review the serialization logic (e.g. ``SerializableInterface``) on
2507-
you user class (if you have any) to make sure that all the fields necessary are
2508-
serialized.
2506+
In that case, review the serialization logic (e.g. the ``__serialize()`` or
2507+
``serialize()`` methods) on you user class (if you have any) to make sure
2508+
that all the fields necessary are serialized and also exclude all the
2509+
fields not necessary to be serialized (e.g. Doctrine relations).
25092510

25102511
Comparing Users Manually with EquatableInterface
25112512
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)