public function XcacheClassLoader::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/class-loader/XcacheClassLoader.php \Symfony\Component\ClassLoader\XcacheClassLoader::__construct()
Constructor.
Parameters
string $prefix The XCache namespace prefix to use.:
object $decorated A class loader object that implements the findFile() method.:
Throws
\RuntimeException
\InvalidArgumentException
File
- vendor/
symfony/ class-loader/ XcacheClassLoader.php, line 69
Class
- XcacheClassLoader
- XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.
Namespace
Symfony\Component\ClassLoaderCode
public function __construct($prefix, $decorated) {
if (!extension_loaded('xcache')) {
throw new \RuntimeException('Unable to use XcacheClassLoader as XCache is not enabled.');
}
if (!method_exists($decorated, 'findFile')) {
throw new \InvalidArgumentException('The class finder must implement a "findFile" method.');
}
$this->prefix = $prefix;
$this->decorated = $decorated;
}