ZF-2893: Detach Zend_InfoCard from Zend_Loader


All ZF components should be loosely coupled and be able to be used alone without other components if possible.

Zend_InfoCard (line 144):


A simple require_once would be faster and would decouple it from Zend_Loader, which makes it possible to use Zend_InfoCard without Zend_Loader.


Please categorize/fix as needed.

Assigning to Darby to evaluate and schedule.

Attaching very short path:

Index: Zend/InfoCard.php
--- Zend/InfoCard.php   (revision 10697)
+++ Zend/InfoCard.php   (working copy)
@@ -138,8 +138,8 @@
     public function getAdapter()
-        if(is_null($this->_adapter)) {
-            Zend_Loader::loadClass('Zend_InfoCard_Adapter_Default');
+        if(is_null($this->_adapter)) {
+            require_once 'Zend/InfoCard/Adapter/Default.php';
             $this->setAdapter(new Zend_InfoCard_Adapter_Default());

Fixed with r11010

Updating for the 1.6.0 release.