You are here

public function ApcUniversalClassLoader::findFile in Zircon Profile 8.0

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

Finds a file by class name while caching lookups to APC.

Parameters

string $class A class name to resolve to file:

Return value

string|null The path, if found

Overrides UniversalClassLoader::findFile

File

vendor/symfony/class-loader/ApcUniversalClassLoader.php, line 93

Class

ApcUniversalClassLoader
ApcUniversalClassLoader implements a "universal" autoloader cached in APC for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

public function findFile($class) {
  if (false === ($file = apc_fetch($this->prefix . $class))) {
    apc_store($this->prefix . $class, $file = parent::findFile($class));
  }
  return $file;
}