private function isEmailValid($email)
    {
        $constraints = array(
            new \Symfony\Component\Validator\Constraints\Email(),
            new \Symfony\Component\Validator\Constraints\NotBlank()
        );

        $errors = $this->validator->validate($email, $constraints);
        return count($errors) === 0;
    }
private function isEmailValid($email)
    {
        $constraints = array(
            new \Symfony\Component\Validator\Constraints\Email(),
            new \Symfony\Component\Validator\Constraints\NotBlank()
        );

        $errors = $this->validator->validate($email, $constraints);
        return count($errors) === 0;
    }
private function isEmailValid ( $ email ) { $ constraints = array ( new \ Symfony \ Component \ Validator \ Constraints \ Email ( ) , new \ Symfony \ Component \ Validator \ Constraints \ NotBlank ( ) ) ; $ errors = $ this -> validator -> validate ( $ email , $ constraints ) ; return count ( $ errors ) === 0 ; }
Validate single email

@param string $email

@return boolean
Validate single email