Commit 74027cd3 authored by alexpott's avatar alexpott

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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment