Hi.

I'm added it here:
http://framework.zend.com/issues/browse/ZF-2533

Please vote.
   

-------------------------- Original message --------------------------
       From: Leo Büttiker | tilllate <[EMAIL PROTECTED]>
    Subject: AW: [fw-general] extended Zend_Loader
       Date: Thursday, October 25, 2007, 9:59:41 AM
Attachments: <none>
      msgid:[EMAIL PROTECTED]

L> Hi all,
L> I've seen this before too. On some places in the code of Zend Framework the
L> Zend_Loader is hard coded as Tomáš mentioned. In my point of view
L> "Zend_Loader::loadClass();" code gives the Framework a unneeded hard
L> coupling to the Loader. Especially in the MVC-Components this coupling
L> forced me to duplicate a lot of Zend code in my own subclasses.

L> This duplication was needed specially in the case of
L> Zend_Controller_Front#setRequest($request) and
L> Zend_Controller_Dispatcher_Standard, but I had the same problem in some
L> other components I can't remember right now.
L> Cheers,
L> Leo


L> -----Ursprüngliche Nachricht-----
L> Von: Tomáš Procházka [mailto:[EMAIL PROTECTED] 
L> Gesendet: Donnerstag, 25. Oktober 2007 07:20
L> An: [email protected]
L> Betreff: Re: [fw-general] extended Zend_Loader

L> Hi Matthew Weier O'Phinney.

L> Maybe, you don't understand me.

L> Static method Zend_Loader::loadClass(); doesn't use my registered class
L> loader with  MyZendLoader::registerAutoload('MyZendLoader'); I think, that
L> this is bug.

L> Zend Framework use Zend_Loader::loadClass() for loading my own classes, for
L> example my rowClass in Zend_DB_Table_Abstract. But I don't have any way to
L> use own classloader for it.

L> I must modified Zend_Loader clas for do it. I added this to loadClass()

L>     if (spl_autoload_functions()!==false) {
L>           spl_autoload_call($class);
L>           return;
L>     } 

L> But I don't like if I must modify Zend Framework files.
L>    

L> -------------------------- Original message --------------------------
L>        From: Matthew Weier O'Phinney <[EMAIL PROTECTED]>
L>     Subject: [fw-general] extended Zend_Loader
L>        Date: Thursday, October 18, 2007, 7:59:16 PM
L> Attachments: <none>
L>       msgid:[EMAIL PROTECTED]

M>> -- Tomáš Procházka <[EMAIL PROTECTED]> wrote
M>> (on Thursday, 18 October 2007, 07:37 PM +0200):
>>> Hi.

>>> I need use Zend for my old project which use different style of class
>>> name. I use class.ClassName.php. Problem of Zend_Loader that I can't
>>> modify it. I can make extension, but Zend Internal use
>>> "Zend_Loader::loadClass($this->_rowClass);" I think, that this is not
>>> good idea.

>>> When I have set this:
>>> MyZendLoader::registerAutoload('MyZendLoader');
>>> Zend_Loader should use this.

>>> What about add this to loadClass() method?

>>> if (spl_autoload_functions()!==false) spl_autoload_call($class);

M>> The beauty of spl_autoload is that you can register as many autoloaders
M>> as you want. If you need to register a different one for your own
M>> classes, do so at any point either before or after calling
M>> Zend_Loader::registerAutoload().


L> ----------------------- End of original message ----------------------


----------------------- End of original message ----------------------

-- 
 Tomas Prochazka

Reply via email to