You are here

public function ClassLoader::register in Zircon Profile 8

Same name in this branch
  1. 8 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::register()
  2. 8 vendor/symfony/class-loader/ClassLoader.php \Symfony\Component\ClassLoader\ClassLoader::register()
  3. 8 vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php \Doctrine\Common\ClassLoader::register()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/ClassLoader.php \Symfony\Component\ClassLoader\ClassLoader::register()

Registers this instance as an autoloader.

Parameters

bool $prepend Whether to prepend the autoloader or not:

File

vendor/symfony/class-loader/ClassLoader.php, line 133

Class

ClassLoader
ClassLoader implements an PSR-0 class loader.

Namespace

Symfony\Component\ClassLoader

Code

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