8000 Added some links to API methods · symfony/symfony-docs@2deb5d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2deb5d7

Browse files
committed
Added some links to API methods
1 parent 6625ff2 commit 2deb5d7

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

cookbook/security/entity_provider.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ security layer, the entity class must implement the
190190
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`. This
191191
interface forces the class to implement the five following methods:
192192

193-
* ``getRoles()``,
194-
* ``getPassword()``,
195-
* ``getSalt()``,
196-
* ``getUsername()``,
197-
* ``eraseCredentials()``
193+
* :method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getRoles`
194+
* :method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getPassword`
195+
* :method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getSalt`
196+
* :method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::getUsername`
197+
* :method:`Symfony\\Component\\Security\\Core\\User\\UserInterface::eraseCredential`
198198

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

@@ -377,11 +377,14 @@ entity class to benefit from simple and advanced authentication behaviors.
377377
The :class:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface`
378378
interface adds four extra methods to validate the account status:
379379

380-
* ``isAccountNonExpired()`` checks whether the user's account has expired,
381-
* ``isAccountNonLocked()`` checks whether the user is locked,
382-
* ``isCredentialsNonExpired()`` checks whether the user's credentials (password)
383-
has expired,
384-
* ``isEnabled()`` checks whether the user is enabled.
380+
* :method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isAccountNonExpired`
381+
checks whether the user's account has expired,
382+
* :method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isAccountNonLocked`
383+
checks whether the user is locked,
384+
* :method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isCredentialsNonExpired`
385+
checks whether the user's credentials (password) has expired,
386+
* :method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isEnabled`
387+
checks whether the user is enabled.
385388

386389
For this example, the first three methods will return ``true`` whereas the
387390
``isEnabled()`` method will return the boolean value in the ``isActive`` field.

0 commit comments

Comments
 (0)
0