public function XcacheClassLoader::findFile

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

Parameters

string $class A class name to resolve to file:

Return value

string|null

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

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/XcacheClassLoader.php, line 114

Class

XcacheClassLoader
XcacheClassLoader implements a wrapping autoloader cached in Xcache for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

public function findFile($class) {
  if (xcache_isset($this->prefix . $class)) {
    $file = xcache_get($this->prefix . $class);
  }
  else {
    xcache_set($this->prefix . $class, $file = $this->classFinder
      ->findFile($class));
  }
  return $file;
}