Skip to content

Instantly share code, notes, and snippets.

@Greg-Boggs
Forked from sun/config-dev.patch
Last active August 29, 2015 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Greg-Boggs/0e600517231fece91221 to your computer and use it in GitHub Desktop.
Save Greg-Boggs/0e600517231fece91221 to your computer and use it in GitHub Desktop.
diff --git a/sites/default/settings.php b/sites/default/settings.php
index b2ce930..9d0514e 100644
--- a/sites/default/settings.php
+++ b/sites/default/settings.php
@@ -611,7 +611,8 @@
* The 'bootstrap_config_storage' setting needs to be a callable that returns
* core.services.yml.
*/
- # $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage');
+$settings['bootstrap_config_storage'] = 'Drupal\Core\Config\BootstrapConfigStorageFactory::getFileStorage';
+$GLOBALS['conf']['container_yamls'][] = $conf_path . '/services.yml';
/**
* Configuration overrides.
diff --git a/sites/default/services.yml b/sites/default/services.yml
new file mode 100644
index 0000000..3d2a0cd
--- /dev/null
+++ b/sites/default/services.yml
@@ -0,0 +1,6 @@
+services:
+ config.storage:
+ class: Drupal\Core\Config\CachedStorage
+ arguments: ['@config.storage.active', '@cache.config']
+ config.storage.active:
+ alias: config.storage.file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment