public __construct ( |
||
$environmentConfiguration | ||
$options | array |
public function __construct(EnvironmentConfiguration $environmentConfiguration, array $options = [])
{
if (!extension_loaded('memcache') && !extension_loaded('memcached')) {
throw new Exception('The PHP extension "memcache" or "memcached" must be installed and loaded in order to use the Memcache backend.', 1213987706);
}
parent::__construct($environmentConfiguration, $options);
}
/** * Constructs this backend * * @param ApplicationContext $context Flow's application context * @param array $options Configuration options - depends on the actual backend */ public function __construct(ApplicationContext $context, array $options = []) { $this->context = $context; $environmentConfiguration = $this->createEnvironmentConfiguration($context); parent::__construct($environmentConfiguration, $options); }