ZF-11387: add require_once everywhere or remove require_once everywhere, but be logical when using Autoloader

Issue Type: Improvement Created: 2011-05-18T14:01:50.000+0000 Last Updated: 2011-05-18T14:02:55.000+0000 Status: Open Fix version(s): Reporter: Antoine Cœur (cœur) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:


In Zend/Application.php you have: {quote} require_once 'Zend/Loader/Autoloader.php'; $this->_autoloader = Zend_Loader_Autoloader::getInstance(); {quote} If you comment those two lines, the only missing "require_once" will be for Zend_Config_Ini (line 384) and the likes, and for Zend_Application_Exception.

So we assume we are using Autoloader, why we find "require_once" for everything in all the files of the Zend/Application/Resource folder?

So, be logical: * either make Autoloader optional by adding "require_once" for every "new" invocation everywhere. * either make Autoloader a must-use and remove all the "require_once" from dozens of files in the Zend/Application folder.


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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