Loader/ResourceLoaderInterface.php

Generic Autoloader Interface

This file contains the generic autoloader interface. USe this when defining a specific autoloader (strategy) such as standard, psr-0, classmap, etc.

A path is simply a directory to look in after Modules and prefixes, like an include path. The path looked for will be PSR-0 compliant, converting appropriate characters and all-such. A path set to default is used as the 'project's base directory

A Module is a specific part of a library supplied by a vendor, this may or may not live in the same path, it could exist in a different path then the default vendor path. What happens then is when the vendor\Module namespace is encountered the new path is substituted in before adding any additional path elements. Think PSR-4

vvv

A prefix defines class prefixes that don't fit into PSR-0 or otherwise compliant architectures. For example, lets say in the Logging Module there is a class titled, WPBaseLog, WP is the prefix but is not necessarily provided in the directory structure as might be expected of PSR-0 etc. When the autoloader encounters a prefix in the final class name, it first checks to see if that file name exists, then takes out the prefix and attempts to load the class file again.

^^^ Not PSR-0 standard

Interfaces

LoaderInterface The Generic Autoloader Interface