public function ClassLoader::register

Same name in this branch

Registers this instance as an autoloader.

Parameters

Boolean $prepend Whether to prepend the autoloader or not:

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ClassLoader.php, line 129

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);
}