Symfony\Component\ClassLoader\ApcClassLoader::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $prefix, object $decorated )
$prefix string The APC namespace prefix to use
$decorated object A class loader object that implements the findFile() method
    public function __construct($prefix, $decorated)
    {
        if (!function_exists('apcu_fetch')) {
            throw new \RuntimeException('Unable to use ApcClassLoader as APC is not installed.');
        }
        if (!method_exists($decorated, 'findFile')) {
            throw new \InvalidArgumentException('The class finder must implement a "findFile" method.');
        }
        $this->prefix = $prefix;
        $this->decorated = $decorated;
    }