public function ApcCache::__construct in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ Cache/ ApcCache.php, line 24
Class
Namespace
Symfony\Component\Validator\Mapping\CacheCode
public function __construct($prefix) {
if (!extension_loaded('apc')) {
throw new \RuntimeException('Unable to use ApcCache to cache validator mappings as APC is not enabled.');
}
$this->prefix = $prefix;
}