public function getProviderTypeByClass($providerClass)
{
switch ($providerClass) {
case 'Escape\\WSSEAuthenticationBundle\\Security\\Core\\Authentication\\Provider\\Provider':
return self::BUILTIN_PROVIDER;
break;
case 'Symfony\\Component\\Security\\Core\\Authentication\\Provider\\DaoAuthenticationProvider':
return self::BUILTIN_PROVIDER;
break;
case 'FR3D\\LdapBundle\\Security\\Authentication\\LdapAuthenticationProvider':
return 'LDAP';
break;
default:
throw new \Exception('Unknown provider ' . $providerClass);
}
}