public function ApcCache::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Mapping/Cache/ApcCache.php \Symfony\Component\Validator\Mapping\Cache\ApcCache::__construct()
File
- vendor/
symfony/ validator/ Mapping/ Cache/ ApcCache.php, line 26
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;
}