function xautoload_ClassFinder_ApcCache::__construct in X Autoload 7.2
Parameters
object $finder: Another ClassFinder to delegate to, if the class is not in the cache.
string $prefix: A prefix for the storage key in APC.
File
- lib/
ClassFinder/ ApcCache.php, line 15
Class
Code
function __construct($finder, $prefix) {
if (!extension_loaded('apc') || !function_exists('apc_store')) {
throw new Exception('Unable to use xautoload_ClassFinder_ApcCache, as APC is not enabled.');
}
$this->finder = $finder;
$this->prefix = $prefix;
}