@@ -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
- It is also usefull to implement the
30
+ It may also be useful to implement the
31
31
:class: `Symfony\\ Component\\ Security\\ Core\\ User\\ EquatableInterface ` interface,
32
- to define a method how check if the user is equal to the current user. This
33
- interface requires a :method: `Symfony\\ Component\\ Security\\ Core\\ User\\ EquatableInterface::isEqualTo `
32
+ which defines a method to check if the user is equal to the current user. This
33
+ interface requires an :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.
0 commit comments