vendor/symfony/security-core/User/InMemoryUser.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Security\Core\User;
  11. /**
  12.  * UserInterface implementation used by the in-memory user provider.
  13.  *
  14.  * This should not be used for anything else.
  15.  *
  16.  * @author Robin Chalas <robin.chalas@gmail.com>
  17.  * @author Fabien Potencier <fabien@symfony.com>
  18.  */
  19. final class InMemoryUser extends User
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      *
  24.      * @deprecated since Symfony 5.3
  25.      */
  26.     public function isAccountNonExpired(): bool
  27.     {
  28.         trigger_deprecation('symfony/security-core''5.3''Method "%s()" is deprecated, you should stop using it.'__METHOD__);
  29.         return parent::isAccountNonExpired();
  30.     }
  31.     /**
  32.      * {@inheritdoc}
  33.      *
  34.      * @deprecated since Symfony 5.3
  35.      */
  36.     public function isAccountNonLocked(): bool
  37.     {
  38.         trigger_deprecation('symfony/security-core''5.3''Method "%s()" is deprecated, you should stop using it.'__METHOD__);
  39.         return parent::isAccountNonLocked();
  40.     }
  41.     /**
  42.      * {@inheritdoc}
  43.      *
  44.      * @deprecated since Symfony 5.3
  45.      */
  46.     public function isCredentialsNonExpired(): bool
  47.     {
  48.         trigger_deprecation('symfony/security-core''5.3''Method "%s()" is deprecated, you should stop using it.'__METHOD__);
  49.         return parent::isCredentialsNonExpired();
  50.     }
  51.     /**
  52.      * @deprecated since Symfony 5.3
  53.      */
  54.     public function getExtraFields(): array
  55.     {
  56.         trigger_deprecation('symfony/security-core''5.3''Method "%s()" is deprecated, you should stop using it.'__METHOD__);
  57.         return parent::getExtraFields();
  58.     }
  59.     public function setPassword(string $password)
  60.     {
  61.         trigger_deprecation('symfony/security-core''5.3''Method "%s()" is deprecated, you should stop using it.'__METHOD__);
  62.         parent::setPassword($password);
  63.     }
  64. }