You are here

public function StaticFileCacheBackend::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::__construct()

Constructs a PHP Storage FileCache backend.

Parameters

array $configuration: (optional) Configuration used to configure this object.

File

core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php, line 37
Contains \Drupal\Tests\Component\FileCache\StaticFileCacheBackend.

Class

StaticFileCacheBackend
Allows to cache data based on file modification dates in a static cache.

Namespace

Drupal\Tests\Component\FileCache

Code

public function __construct($configuration) {
  $this->bin = isset($configuration['bin']) ? $configuration['bin'] : 'file_cache';
}