public function XcacheClassLoader::findFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/class-loader/XcacheClassLoader.php \Symfony\Component\ClassLoader\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 vendor/
symfony/ class-loader/ XcacheClassLoader.php - Loads the given class or interface.
File
- vendor/
symfony/ class-loader/ XcacheClassLoader.php, line 124
Class
- XcacheClassLoader
- XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.
Namespace
Symfony\Component\ClassLoaderCode
public function findFile($class) {
if (xcache_isset($this->prefix . $class)) {
$file = xcache_get($this->prefix . $class);
}
else {
$file = $this->decorated
->findFile($class);
xcache_set($this->prefix . $class, $file);
}
return $file;
}