for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) FSi sp. z o.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FSi\Bundle\AdminSecurityBundle\Doctrine\Repository;
use Doctrine\ORM\EntityRepository;
use FSi\Bundle\AdminSecurityBundle\Security\User\UserRepositoryInterface;
class UserRepository extends EntityRepository implements UserRepositoryInterface
{
* {@inheritdoc}
public function findUserByActivationToken($activationToken)
return $this->findOneBy(['activationToken.token' => $activationToken]);
}
public function findUserByPasswordResetToken($confirmationToken)
return $this->findOneBy(['passwordResetToken.token' => $confirmationToken]);
public function findUserByEmail($email)
return $this->findOneBy(['email' => $email]);