Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.0RC1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Cache
-
Labels:None
Description
All ZF components should be loosly coupled and be able to be used alone without other components if possible.
Zend_Cache_Backend for example:
// Create a default logger to the standard output stream
Zend_Loader::loadClass('Zend_Log_Writer_Stream');
A simple require_once would be faster and would decouple it from Zend_Loader, which makes it possible to use Zend_Cache without Zend_Loader.
There are a few other places in Zend_Cache where this should also be decoupled.
There are some classes which could be detached:
Zend_Feed_Builder_Header_Itunes (line 115)
Zend_Feed_Builder_Header (lines 178, 249, 272)
Zend_InfoCard (line 144)