You are here

public function CacheFactory::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()

Constructs CacheFactory object.

Parameters

\Drupal\Core\Site\Settings $settings: The settings array.

array $default_bin_backends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this.

File

core/lib/Drupal/Core/Cache/CacheFactory.php, line 50
Contains \Drupal\Core\Cache\CacheFactory.

Class

CacheFactory

Namespace

Drupal\Core\Cache

Code

public function __construct(Settings $settings, array $default_bin_backends = array()) {
  $this->settings = $settings;
  $this->defaultBinBackends = $default_bin_backends;
}