Search code examples
phpzend-frameworkzend-framework2zend-autoloader

Implementing Zend Framework 2 Autoloader


Is it possible to replace ZF1 Autoloader with ZF2 Autoloader, as it seems that it could significantly increase performance ?

I didn't find any tutorials out there neither much material on this - I've just heard ZF2's Autoloader would be much faster.


Solution

  • As ZF1 codebase uses require_once to include dependencies, ZF1 autoloader relies on include path which leads to poor performance results.

    Migrating to ZF2 autoloader (or Composer's one) will not have a significant performance impact.