You are here

public function MapClassLoader::findFile in Zircon Profile 8.0

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

Finds the path to the file where the class is defined.

Parameters

string $class The name of the class:

Return value

string|null The path, if found

File

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

Class

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

Namespace

Symfony\Component\ClassLoader

Code

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