You are here

public function ApcCache::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

ApcCache

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

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;
}