You are here

public function MapClassLoader::loadClass in Zircon Profile 8

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

Loads the given class or interface.

Parameters

string $class The name of the class:

File

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

Class

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

Namespace

Symfony\Component\ClassLoader

Code

public function loadClass($class) {
  if (isset($this->map[$class])) {
    require $this->map[$class];
  }
}