[TASK] I don't know what changed, but it might be important.
This commit is contained in:
parent
e424ea2cbe
commit
7e7ac368b2
|
@ -185,7 +185,9 @@ class Client_ClientManager {
|
||||||
$className = "Client_" . $protocol . "Client";
|
$className = "Client_" . $protocol . "Client";
|
||||||
//look for the class
|
//look for the class
|
||||||
if(class_exists($className)) {
|
if(class_exists($className)) {
|
||||||
return new $className();
|
$client = new $className();
|
||||||
|
if(!$client instanceof Client_AbstractClient) throw new Exception_GeneralException("Class '" . $className . "' does not implement the AbstractClient-API!", 1294837055);
|
||||||
|
return $client;
|
||||||
} else {
|
} else {
|
||||||
throw new Exception_GeneralException("Registered class name '" . $className . "' does not exist for protocol: '" . $protocol . "'!", 1290271773);
|
throw new Exception_GeneralException("Registered class name '" . $className . "' does not exist for protocol: '" . $protocol . "'!", 1290271773);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue