MapClassLoader (Component\ClassLoader)

Symfony\Component\ClassLoader\MapClassLoader

class MapClassLoader

A class loader that uses a mapping file to look up paths.

Methods

__construct(array $map)

Constructor.

register(bool $prepend = false)

Registers this instance as an autoloader.

loadClass(string $class)

Loads the given class or interface.

string|null findFile(string $class)

Finds the path to the file where the class is defined.

Details