public function ApcUniversalClassLoader::findFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ClassLoaderCode
public function findFile($class) {
if (false === ($file = apc_fetch($this->prefix . $class))) {
apc_store($this->prefix . $class, $file = parent::findFile($class));
}
return $file;
}