You are here

public function Psr4ClassLoader::register in Zircon Profile 8.0

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

Registers this instance as an autoloader.

Parameters

bool $prepend:

File

vendor/symfony/class-loader/Psr4ClassLoader.php, line 82

Class

Psr4ClassLoader
A PSR-4 compatible class loader.

Namespace

Symfony\Component\ClassLoader

Code

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