/** * Finds a file by class name while caching lookups to APC. * * @param string $class A class name to resolve to file * * @return string|null The path, if found */ public function findFile($class) { if (false === ($file = apc_fetch($this->prefix . $class))) { apc_store($this->prefix . $class, $file = parent::findFile($class)); } return $file; }
/** * Try to perform a "quick lookup" for the file containing the given class. * * @param string $class The class name to look up. * * @return null|string Null if the class can't be found, otherwise the absolute path of the file. */ public function findFile($class) { if (isset($this->_classMap[$class])) { return $this->_classMap[$class]; } return parent::findFile($class); }