Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
- 9 core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
Namespace
Drupal\Core\Config
File
core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
View source
<?php
namespace Drupal\Core\Config;
use Drupal\Core\Database\Database;
use Drupal\Core\Site\Settings;
class BootstrapConfigStorageFactory {
public static function get($class_loader = NULL) {
$bootstrap_config_storage = Settings::get('bootstrap_config_storage');
$storage_backend = FALSE;
if (!empty($bootstrap_config_storage) && is_callable($bootstrap_config_storage)) {
$storage_backend = call_user_func($bootstrap_config_storage, $class_loader);
}
return $storage_backend ?: self::getDatabaseStorage();
}
public static function getDatabaseStorage() {
return new DatabaseStorage(Database::getConnection(), 'config');
}
}
Classes