You are here

public function UniversalClassLoader::register in Zircon Profile 8.0

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

Registers this instance as an autoloader.

Parameters

bool $prepend Whether to prepend the autoloader or not:

File

vendor/symfony/class-loader/UniversalClassLoader.php, line 225

Class

UniversalClassLoader
UniversalClassLoader implements a "universal" autoloader for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

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