You are here

public function MapClassLoader::register in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/MapClassLoader.php \Symfony\Component\ClassLoader\MapClassLoader::register()

Registers this instance as an autoloader.

Parameters

bool $prepend Whether to prepend the autoloader or not:

File

vendor/symfony/class-loader/MapClassLoader.php, line 38

Class

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

Namespace

Symfony\Component\ClassLoader

Code

public function register($prepend = false) {
  spl_autoload_register(array(
    $this,
    'loadClass',
  ), true, $prepend);
}