class BootstrapConfigStorageFactory (View source)

Defines a factory for retrieving the config storage used pre-kernel.

Methods

get($class_loader = NULL)

Returns a configuration storage implementation.

static DatabaseStorage
getDatabaseStorage()

Returns a Database configuration storage implementation.

static FileStorage
getFileStorage() deprecated

Returns a File-based configuration storage implementation.

Details

static StorageInterface get($class_loader = NULL)

Returns a configuration storage implementation.

Parameters

$class_loader

The class loader. Normally Composer's ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader.

Return Value

StorageInterface

A configuration storage implementation.

static DatabaseStorage getDatabaseStorage()

Returns a Database configuration storage implementation.

Return Value

DatabaseStorage

static FileStorage getFileStorage() deprecated

deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory.

Returns a File-based configuration storage implementation.

If there is no active configuration directory calling this method will result in an error.

Return Value

FileStorage

Exceptions

Exception