diff --git a/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php b/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php index f548701..1d3da6b 100644 --- a/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php +++ b/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php @@ -7,7 +7,6 @@ namespace Drupal\Core\Config; - /** * Defines a factory for retrieving the config storage used pre-kernel. */ @@ -20,8 +19,8 @@ class BootstrapConfigStorageFactory { * A configuration storage implementation. */ public static function get() { - if (isset($GLOBALS['conf']['drupal_bootstrap_config_storage'])) { - return call_user_func($GLOBALS['conf']['drupal_bootstrap_config_storage']); + if (($drupal_bootstrap_config_storage = settings()->get('drupal_bootstrap_config_storage')) && is_callable($drupal_bootstrap_config_storage)) { + return $drupal_bootstrap_config_storage(); } else { return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));