Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6467fdc

Browse files
committed
[#2111] Minor language tweaks
1 parent 6ddc50c commit 6467fdc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/security/custom_provider.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ however you want and contain any data. The only requirement is that the
2323
class implements :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`.
2424
The methods in this interface should therefore be defined in the custom user
2525
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`,
2727
:method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getSalt`,
2828
:method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getUsername`,
2929
: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
3131
: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`
3434
method.
3535

3636
Let's see this in action::
@@ -103,8 +103,8 @@ Let's see this in action::
103103
}
104104

105105
.. 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.
108108

109109
If you have more information about your users - like a "first name" - then
110110
you can add a ``firstName`` field to hold that data.

0 commit comments

Comments
 (0)