UserBackend: Remove testing only related code

There are no tests for this class at all.
This commit is contained in:
Johannes Meyer 2015-04-21 14:15:43 +02:00
parent 97caeb27f7
commit b45e576722
1 changed files with 0 additions and 13 deletions

View File

@ -60,19 +60,6 @@ abstract class UserBackend implements Countable
$name = $backendConfig->name;
}
if (isset($backendConfig->class)) {
// Use a custom backend class, this is only useful for testing
if (!class_exists($backendConfig->class)) {
throw new ConfigurationError(
'Authentication configuration for backend "%s" defines an invalid backend class.'
. ' Backend class "%s" not found',
$name,
$backendConfig->class
);
}
return new $backendConfig->class($backendConfig);
}
if (! ($backendType = strtolower($backendConfig->backend))) {
throw new ConfigurationError(
'Authentication configuration for backend "%s" is missing the backend directive',