Warning: Undefined variable $token_full_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 5
; use
Warning: Undefined variable $user_full_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 6
; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Common\Persistence\ManagerRegistry; /** * @method
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 11
|null find($id, $lockMode = null, $lockVersion = null) * @method
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 12
|null findOneBy(array $criteria, array $orderBy = null) * @method
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 13
[] findAll() * @method
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 14
[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class
Warning: Undefined variable $class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 16
extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry,
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 20
::class); } public function findNonExpiredForUser(
Warning: Undefined variable $user_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 23
$user): array { // We calculate the oldest datetime a valid token could have generated at $tokenLifetime = new \DateInterval(sprintf('PT%sH',
Warning: Undefined variable $token_class_name in /home/net1/social.net1.club/vendor/symfony/maker-bundle/src/Resources/skeleton/forgottenPassword/PasswordResetTokenRepository.tpl.php on line 26
::LIFETIME_HOURS)); $minDateTime = (new \DateTimeImmutable('now'))->sub($tokenLifetime); return $this->createQueryBuilder('t') ->where('t.user = :user') ->andWhere('t.requestedAt >= :minDateTime') ->setParameters([ 'minDateTime' => $minDateTime, 'user' => $user, ]) ->getQuery() ->getResult() ; } }