10000 moved the versionadded block as it has more sense after the code snippet · web-dev/symfony-docs@24904c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24904c0

Browse files
committed
moved the versionadded block as it has more sense after the code snippet
1 parent d190ec9 commit 24904c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cookbook/security/entity_provider.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ To make it shorter, the getter and setter methods for each have been removed to
4040
focus on the most important methods that come from the
4141
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`.
4242

43-
.. versionadded:: 2.1
44-
45-
In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``.
46-
If you need to override the default implementation of comparison logic,
47-
implement the new :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface`
48-
interface.
49-
5043
.. code-block:: php
5144
5245
// src/Acme/UserBundle/Entity/User.php
@@ -155,6 +148,13 @@ interface forces the class to implement the five following methods:
155148

156149
For more details on each of these, see :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`.
157150

151+
.. versionadded:: 2.1
152+
153+
In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``.
154+
If you need to override the default implementation of comparison logic,
155+
implement the new :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface`
156+
interface and implement the ``isEqualTo`` method.
157+
158158
Below is an export of my ``User`` table from MySQL. For details on how to
159159
create user records and encode their password, see :ref:`book-security-encoding-user-password`.
160160

0 commit comments

Comments
 (0)
0