public function findOneByEmail($email)
    {
        $user = $this
            ->findOneBy([
                'email' => $email,
            ]);

        return ($user instanceof AbstractUserInterface)
            ? $user
            : null;
    }
public function findOneByEmail($email)
    {
        $user = $this
            ->findOneBy([
                'email' => $email,
            ]);

        return ($user instanceof AbstractUserInterface)
            ? $user
            : null;
    }
public function findOneByEmail ( $ email ) { $ user = $ this -> findOneBy ( [ 'email' => $ email , ] ) ; return ( $ user instanceof AbstractUserInterface ) ? $ user : null ; }
Find one Entity given an email.

@param string $email Email

@return AbstractUserInterface|null User found
Find one Entity given an email .