|
|
@@ -64,12 +64,13 @@ class Zend_Serializer
|
|
|
require_once 'Zend/Serializer/Exception.php';
|
|
|
throw new Zend_Serializer_Exception('Can\'t load serializer adapter "'.$adapterName.'"', 0, $e);
|
|
|
}
|
|
|
- $adapterReflection = new ReflectionClass($adapterClass);
|
|
|
- if (!$adapterReflection->implementsInterface('Zend_Serializer_Adapter_AdapterInterface')) {
|
|
|
+
|
|
|
+ $adapterObj = new $adapterClass($opts);
|
|
|
+ if (!$adapterObj instanceof Zend_Serializer_Adapter_AdapterInterface) {
|
|
|
require_once 'Zend/Serializer/Exception.php';
|
|
|
throw new Zend_Serializer_Exception('The serializer adapter class "'.$adapterClass.'" must implement Zend_Serializer_Adapter_AdapterInterface');
|
|
|
}
|
|
|
- return new $adapterClass($opts);
|
|
|
+ return $adapterObj;
|
|
|
}
|
|
|
|
|
|
/**
|