You are here

public function DebugClassLoader::findFile in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/debug/DebugClassLoader.php \Symfony\Component\Debug\DebugClassLoader::findFile()
  2. 8.0 vendor/symfony/class-loader/DebugClassLoader.php \Symfony\Component\ClassLoader\DebugClassLoader::findFile()
Same name and namespace in other branches
  1. 8 vendor/symfony/debug/DebugClassLoader.php \Symfony\Component\Debug\DebugClassLoader::findFile()

Finds a file by class name.

Parameters

string $class A class name to resolve to file:

Return value

string|null

Deprecated

since version 2.5, to be removed in 3.0.

File

vendor/symfony/debug/DebugClassLoader.php, line 125

Class

DebugClassLoader
Autoloader checking if the class is really defined in the file found.

Namespace

Symfony\Component\Debug

Code

public function findFile($class) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
  if ($this->wasFinder) {
    return $this->classLoader[0]
      ->findFile($class);
  }
}