public function CacheFactory::__construct

public CacheFactory::__construct(Settings $settings, array $default_bin_backends = array())

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 45

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!CacheFactory.php/function/CacheFactory::__construct/8.1.x