public function ApcClassLoader::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

1 call to ApcClassLoader::findFile()
ApcClassLoader::loadClass in drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ApcClassLoader.php
Loads the given class or interface.

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ApcClassLoader.php, line 120

Class

ApcClassLoader
ApcClassLoader implements a wrapping 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 = $this->decorated
      ->findFile($class));
  }
  return $file;
}