@@ -23,14 +23,14 @@ however you want and contain any data. The only requirement is that the
23
23
class implements:class: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface `.
24
24
The methods in this interface should therefore be defined in the custom user
25
25
class::method: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface::getRoles `,
26
- :method`Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterfacegetPassword `,
26
+ :method: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface::getPassword `,
27
27
:method: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface::getSalt `,
28
28
:method: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface::getUsername `,
29
29
:method: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface::eraseCredentials `.
30
- Itis alsousefull to implement the
30
+ Itmay alsobe useful to implement the
31
31
:class: `Symfony\\ Component\\ Security\\ Core\\ User\\ EquatableInterface ` interface,
32
- to define a methodhow check if the user is equal to the current user. This
33
- interface requiresa :method: `Symfony\\ Component\\ Security\\ Core\\ User\\ EquatableInterface::isEqualTo `
32
+ which defines a methodto check if the user is equal to the current user. This
33
+ interface requiresan :method: `Symfony\\ Component\\ Security\\ Core\\ User\\ EquatableInterface::isEqualTo `
34
34
method.
35
35
36
36
Let's see this in action::
@@ -103,8 +103,8 @@ Let's see this in action::
103
103
}
104
104
105
105
..versionadded ::2.1
106
- The ``EquatableInterface `` was added in Symfony 2.1, use the ``equals() ``
107
- method of the ``UserInterface `` in Symfony 2.0
106
+ The ``EquatableInterface `` was added in Symfony 2.1. Use the ``equals() ``
107
+ method of the ``UserInterface `` in Symfony 2.0.
108
108
109
109
If you have more information about your users - like a "first name" - then
110
110
you can add a ``firstName `` field to hold that data.