class AliasClassLoader (View source)

A class loader that uses the class alias list.

Properties

private $classAliasList
private $isLoaded

Methods

__construct(ClassAliasList $classAliasList)

Constructor.

register(bool $prepend = false)

Registers this instance as an autoloader.

loadClass(string $class)

Loads the given class or interface.

Details

__construct(ClassAliasList $classAliasList)

Constructor.

Parameters

ClassAliasList $classAliasList

register(bool $prepend = false)

Registers this instance as an autoloader.

Parameters

bool $prepend

Whether to prepend the autoloader or not

loadClass(string $class)

Loads the given class or interface.

Parameters

string $class

The name of the class