FileStorage::__construct

public FileStorage::__construct($directory, $collection = StorageInterface::DEFAULT_COLLECTION)

Constructs a new FileStorage.

Parameters

string $directory: A directory path to use for reading and writing of configuration files.

string $collection: (optional) The collection to store configuration in. Defaults to the default collection.

File

core/lib/Drupal/Core/Config/FileStorage.php, line 44

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

public function __construct($directory, $collection = StorageInterface::DEFAULT_COLLECTION) {
  $this->directory = $directory;
  $this->collection = $collection;

  // Use a NULL File Cache backend by default. This will ensure only the
  // internal statc caching of FileCache is used and thus avoids blowing up
  // the APCu cache.
  $this->fileCache = FileCacheFactory::get('config', ['cache_backend_class' => NULL]);
}
doc_Drupal
2016-10-29 09:13:44
Comments
Leave a Comment

Please login to continue.