public function CacheFactory::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()
Constructs CacheFactory object.
Parameters
\Drupal\Core\Site\Settings $settings: The site settings.
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
Namespace
Drupal\Core\CacheCode
public function __construct(Settings $settings, array $default_bin_backends = []) {
$this->settings = $settings;
$this->defaultBinBackends = $default_bin_backends;
}