Edited the example above; works with autoloading as desired. No need for a separate autoload register (the calls to the common hook essentially form that).
If done statically, the order needs to ensure that any dependencies exist at the time the include function is called, and any time a new class is created, said static list needs to be appended. The autoloading example removes the need to do this.
Quote:All classes should be available, auto load or not.
If done statically, the order needs to ensure that any dependencies exist at the time the include function is called, and any time a new class is created, said static list needs to be appended. The autoloading example removes the need to do this.