src/Kunstmaan/AdminBundle/Helper/Security/OAuth/OAuthUserCreator.php
private function isConfiguredDomain($email)
    {
        foreach ($this->hostedDomains as $hostedDomain) {
            if (preg_match('/'.$hostedDomain['domain_name'].'$/', $email)) {
                return true;
            }
        }

        return false;
    }
private function isConfiguredDomain($email)
    {
        foreach ($this->hostedDomains as $hostedDomain) {
            if (preg_match('/'.$hostedDomain['domain_name'].'$/', $email)) {
                return true;
            }
        }

        return false;
    }
private function isConfiguredDomain ( $ email ) { foreach ( $ this -> hostedDomains as $ hostedDomain ) { if ( preg_match ( '/' . $ hostedDomain [ 'domain_name' ] . '$/' , $ email ) ) { return true ; } } return false ; }
This method returns wether a domain for the given email has been configured

@param string $email

@return bool
This method returns wether a domain for the given email has been configured