JLoader::setup
Method to setup the autoloaders for the Joomla Platform.
Since the SPL autoloaders are called in a queue we will add our explicit class-registration based loader first, then fall back on the autoloader based on conventions. This will allow people to register a class in a specific location and override platform libraries as was previously possible.
Signature
public function setup([boolean
$enablePsr = true,
[boolean
$enablePrefixes = true,
[boolean
$enableClasses = true]]] )
Parameters
-
$enablePsr
- True to enable autoloading based on PSR-0.
-
$enablePrefixes
- True to enable prefix based class loading (needed to auto load the Joomla core).
-
$enableClasses
- True to enable class map based class loading (needed to auto load the Joomla core).
Returns
- void