Skip to content
Snippets Groups Projects
Commit 74027cd3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2227355 by sun: InstallerServiceProvider does not override all cache...

Issue #2227355 by sun: InstallerServiceProvider does not override all cache bins to use memory backend.
parent 29110623
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -30,11 +30,10 @@ public function register(ContainerBuilder $container) {
$container->register('config.storage', 'Drupal\Core\Config\InstallStorage');
// Replace services with in-memory implementations.
foreach (array('bootstrap', 'config', 'cache', 'menu', 'page', 'path') as $bin) {
$container
->register("cache.$bin", 'Drupal\Core\Cache\MemoryBackend')
->addArgument($bin);
}
$definition = $container->getDefinition('cache_factory');
$definition->setClass('Drupal\Core\Cache\MemoryBackendFactory');
$definition->setArguments(array());
$definition->setMethodCalls(array());
$container
->register('keyvalue', 'Drupal\Core\KeyValueStore\KeyValueMemoryFactory');
$container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment