diff --git a/core/core.services.yml b/core/core.services.yml index 5518e53..b829592 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -53,9 +53,10 @@ services: arguments: ['@database', '@cache_tags_storage'] cache.backend.apcu: class: Drupal\Core\Cache\ApcuBackendFactory - arguments: ['@app.root'] + arguments: ['@app.root', '@cache_tags_storage'] cache.backend.php: class: Drupal\Core\Cache\PhpBackendFactory + arguments: ['@cache_tags_storage'] cache.bootstrap: class: Drupal\Core\Cache\CacheBackendInterface tags: diff --git a/core/lib/Drupal/Core/Cache/ApcuBackendFactory.php b/core/lib/Drupal/Core/Cache/ApcuBackendFactory.php index b2e27e5..b1ffc4a 100644 --- a/core/lib/Drupal/Core/Cache/ApcuBackendFactory.php +++ b/core/lib/Drupal/Core/Cache/ApcuBackendFactory.php @@ -33,7 +33,7 @@ class ApcuBackendFactory implements CacheFactoryInterface { * @param \Drupal\Core\Cache\CacheTagsInvalidationStorageInterface $cache_tags_storage * Cache tags storage. */ - public function __construct($root, CacheTagsInvalidationStorageInterface $cache_tags_storage, CacheTagsInvalidationStorageInterface $cache_tags_storage) { + public function __construct($root, CacheTagsInvalidationStorageInterface $cache_tags_storage) { $this->sitePrefix = Crypt::hashBase64($root . '/' . conf_path()); $this->cacheTagsStorage = $cache_tags_storage; }