You are here

public function WinCacheClassLoader::findFile in Zircon Profile 8.0

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

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

Parameters

string $class A class name to resolve to file:

Return value

string|null

1 call to WinCacheClassLoader::findFile()
WinCacheClassLoader::loadClass in vendor/symfony/class-loader/WinCacheClassLoader.php
Loads the given class or interface.

File

vendor/symfony/class-loader/WinCacheClassLoader.php, line 124

Class

WinCacheClassLoader
WinCacheClassLoader implements a wrapping autoloader cached in WinCache.

Namespace

Symfony\Component\ClassLoader

Code

public function findFile($class) {
  if (false === ($file = wincache_ucache_get($this->prefix . $class))) {
    wincache_ucache_set($this->prefix . $class, $file = $this->decorated
      ->findFile($class), 0);
  }
  return $file;
}