Base XenForo autoloader class.

This must be the first class loaded and setup as the application/registry depends on it for loading classes.

package XenForo_Core

 Methods

Autoload the specified class.

autoload(string $class) : boolean

Parameters

$class

string

Name of class to autoload

Returns

boolean

Resolves a class name to an autoload path.

autoloaderClassToFile(string $class) : string | false

Parameters

$class

string

Name of class to autoload

Returns

stringfalseFalse if the class contains invalid characters.

Gets the autoloader instance.

getInstance() : \XenForo_Autoloader
Static

Gets the autoloader's root directory.

getRootDir() : string

Returns

string

Manually sets the autoloader instance.

setInstance(\XenForo_Autoloader $loader) 
Static

Use this to inject a modified version.

Parameters

$loader

\XenForo_Autoloadernull

Setup the autoloader.

setupAutoloader(string $rootDir) 

This causes the environment to be setup as necessary.

Parameters

$rootDir

string

Path to application library directory. See {@link $_rootDir}

Protected constructor.

__construct() 

Use getInstance() instead.

Internal method that actually applies the autoloader.

_setupAutoloader() 

See setupAutoloader() for external usage.

 Properties

 

$_instance : \XenForo_Autoloader
 

$_rootDir : string
 

$_setup : boolean