ZF-2891: Detach Zend_Cache from Zend_Loader

Issue Type: Improvement Created: 2008-03-16T12:47:36.000+0000 Last Updated: 2008-09-02T10:39:09.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Thomas Weidner (thomas) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: - ZF-3875



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

Zend_Cache_Backend for example:

<pre class="highlight">
        // Create a default logger to the standard output 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.


Posted by Martin Hujer (mhujer) on 2008-03-16T13:03:38.000+0000

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)

Posted by Martin Hujer (mhujer) on 2008-03-16T13:07:14.000+0000

I've searched through the framework using:

<pre class="highlight">

I wish, I could edit comments....

Posted by Thomas Weidner (thomas) on 2008-03-16T13:14:09.000+0000

Best would be to create an issue per component. Because the author of Zend_Feed will not touch Zend_Cache and visa-versa.

Posted by Martin Hujer (mhujer) on 2008-03-16T13:20:30.000+0000

Ok, I didn't want to mess up the tracker.

Posted by Thomas Weidner (thomas) on 2008-03-16T14:06:39.000+0000

Thats no problem... I know the guys. :-)

When you add 15 classes to be changes this issue will be opened forever because everyone says he is not able to change the other class.

So better go the simple way and copy the issue for every component where it is needed. ;-)

Posted by Martin Hujer (mhujer) on 2008-03-16T14:10:20.000+0000

OK, I'll remember this in the future :-)

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:09.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.