Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Autoload refinement

Exponential now uses the autoload function stack in SPL to invoke autoload methods. This also means that custom autoload methods can be added in config.php.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/4.1/autoload_refinement.txt

Autoload refinement
===================

Usage of spl_autoload_register()
--------------------------------

Exponential now uses the autoload function stack in SPL to invoke autoload
methods. This also means that custom autoload methods can be added in
config.php.

If the the custom autoload method won't load Exponential's classes, the method
should check the class-prefix, or just return without exception if the class
is not found. The reason for this is that PHP will try each method in the
autoload stack, but it will stop if an exception is encountered higher up in
stack.

Each call to spl_autoload_register() will append the new method at the bottom
of the stack. PHP starts at the top, when looking for classes.

Incremental progress output
---------------------------

Starting from Exponential 4.1 it is possible to get incremental progress output
of the autoload generation process.

This is activated when using *bin/php/ezpgenerateautoloads.php* with the *-p /
--progress* options.

Currently only progress output is only available for the CLI, provided by the
ezpAutoloadCliOutput class.

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors