0

My application is based requires Zend Framework 1.12 and I am using composer to manage depencies, including Zend Framework itself, PHPUnit and required libraries.

The problem here is the autoloader dumped by composer maps every class from all libraries. I don't use every ZendFramework class, and so, I'd like to replace the Zend Framework default autoloader configuration with my own (maybe completelly ignore it and configure another myself).

How can I achieve this?

Wanderson Silva
  • 1,179
  • 1
  • 17
  • 35

1 Answers1

0

Well, the definition of autoloading for Zend framework 1 uses PSR-0. This will only install a single entry in the Composer autoloader, and nothing else. I wouldn't consider this any kind of annoying.

However, don't "optimize" the autoloader. This is known to be slower in some cases.

Community
  • 1
  • 1
Sven
  • 69,403
  • 10
  • 107
  • 109
  • The thing is the autoloader_classmap.php lists all files contained in Zend Framework when I only use some of them. I'll try the results of not optimizing. – Wanderson Silva Feb 28 '15 at 15:58