FileStorage Settings for config.storage.active in Drupal 8?

Events happening in the community are now at Drupal community events on www.drupal.org.
tomsherlock's picture

Would anyone know the correct settings for config.storage.active when pointing to FileStorage?

According to the Active configuration settings section of settings.php:

"/**
* Active configuration settings.
*
* By default, the active configuration is stored in the database in the
* {config} table. To use a different storage mechanism for the active
* configuration, do the following prior to installing:
* - Override the 'bootstrap_config_storage' setting here. It must be set to a
* callable that returns an object that implements
* \Drupal\Core\Config\StorageInterface.
* - Override the service definition 'config.storage.active'. Put this
* override in a services.yml file in the same directory as settings.php
* (definitions in this file will override service definition defaults).
*/"

In effort to find the correct settings for config.storage.active, I did a global search of the project and found this in core.services.yml (drupal-8.0.0-beta2):

config.storage.active:
class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', 'config']
public: false
tags:
- { name: backend_overridable }

So If wanted to instead use FileStorage would my settings look like this in services.yml:

config.storage.active:
class: Drupal\Core\Config\FileStorage
arguments: ['@file', 'config']
public: false
tags:
- { name: what_tag_should_I_put_here_? }

Thanks & Regards,
Tom

Comments

See this

Deployment & Build Systems & Change Management

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: