joomla/joomla-platform — pull request #891 by LouisLandry (2012-02-19 00:09:53+00:00)
Title: Improvements to the system autoloader.

* Add support for numeric digits in class names with the system autoloader.
* Add ability to register multiple lookup paths with the system autoloader.

To register a new filesystem location for Joomla libraries (`J` prefixed classes) with the system autoloader is as simple as:

``` php
// Register my library base path for Joomla platform libraries.
JLoader::registerPrefix('J', '/path/to/my/joomla/libraries');
```
To register a set of libraries with a different class prefix (in this example `C`) it is as simple as:

``` php
// Register my libraries.
JLoader::registerPrefix('C', '/path/to/custom/libraries');
```