Issues

ZF2-11: "Loader::loadClass " code is remains

Issue Type: Bug Created: 2011-05-29T06:51:34.000+0000 Last Updated: 2012-05-09T19:03:08.000+0000 Status: Resolved Fix version(s): Reporter: Kazusuke Sasezaki (sasezaki) Assignee: Maks 3w (maks3w) Tags: - zf-crteam-padraic

  • zf-crteam-priority

Related issues: - ZF2-91

Attachments:

Description

current ZF2 is " Removed loadClass() from Zend\Loader" with commited by 2a3c89bec58887a9d647c459a172a4faad9a739e.

But, Loader::loadClass code is still remain

$ grep -r "Loader::loadClass" library/

Comments

Posted by Pádraic Brady (padraic) on 2011-08-13T17:20:34.000+0000

Issue no longer relevant going by current ZF2 master branch.

Posted by Kazusuke Sasezaki (sasezaki) on 2011-10-01T07:14:20.000+0000

Hi.

You mean that a issue should be along latest code? (ToDo is not issue?)

I think some component (Registry, InfoCard, Captcha, -- which not planned update for zf2) should be still remove "loadClass".

Posted by Benoît Durand (intiilapa) on 2011-10-01T07:41:45.000+0000

I agree with Kazusuke.

<pre class="highlight">
$ grep -r "Loader::loadClass" library/ | wc -l
      26

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-24T16:41:28.000+0000

The count is smaller now, but some still linger (master:1958f8bc4e)

<pre class="highlight">
$ grep -r "Loader::loadClass" library/ | wc -l
13

The majority (7) are in Zend\Db, and will disappear once Ralph's new component is merged.

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-24T16:58:27.000+0000

The remaining ones (besides Zend\Db) are:

<pre class="highlight">
library/Zend/Service/StrikeIron.php:73:                @Zend_Loader::loadClass($class);
library/Zend/Registry.php:117:            Loader::loadClass($registryClassName);
library/Zend/View/Helper/Placeholder/Registry.php:167:            \Zend\Loader::loadClass($name);
library/Zend/Form/Form.php:1842:            Loader::loadClass($class);
library/Zend/Log/Logger.php:254:            \Zend\Loader::loadClass($className);
library/Zend/Filter/Encrypt.php:94:            \Zend\Loader::loadClass($adapter);

Posted by Maks 3w (maks3w) on 2012-02-26T20:53:33.000+0000

-library/Zend/Service/StrikeIron.php:73: @Zend_Loader::loadClass($class);-

Pull request #845

Posted by Maks 3w (maks3w) on 2012-05-09T19:03:08.000+0000

Fixed with https://github.com/zendframework/zf2/pull/1184/

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts