You are here

public function ApcCache::__construct in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/Cache/ApcCache.php, line 24

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