Neos\Cache\Backend\AbstractBackend::__construct PHP Метод

__construct() публичный Метод

Constructs this backend
public __construct ( EnvironmentConfiguration $environmentConfiguration = null, array $options = [] )
$environmentConfiguration Neos\Cache\EnvironmentConfiguration
$options array Configuration options - depends on the actual backend
    public function __construct(EnvironmentConfiguration $environmentConfiguration = null, array $options = [])
    {
        $this->environmentConfiguration = $environmentConfiguration;
        if (is_array($options) || $options instanceof \Iterator) {
            $this->setProperties($options);
        }
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function __construct(EnvironmentConfiguration $environmentConfiguration, array $options)
 {
     if (!extension_loaded('apc')) {
         throw new Exception('The PHP extension "apc" must be installed and loaded in order to use the APC backend.', 1232985414);
     }
     parent::__construct($environmentConfiguration, $options);
 }
All Usage Examples Of Neos\Cache\Backend\AbstractBackend::__construct