Skip to content

Commit fc2a438

Browse files
alexander-schranznicolas-grekas
authored andcommitted
[FrameworkBundle] Change HttpCache directory to use new getShareDir
1 parent ec92315 commit fc2a438

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HttpCache/HttpCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ protected function createSurrogate(): SurrogateInterface
8383

8484
protected function createStore(): StoreInterface
8585
{
86-
return $this->store ?? new Store($this->cacheDir ?: $this->kernel->getCacheDir().'/http_cache');
86+
return $this->store ?? new Store($this->cacheDir ?: $this->kernel->getShareDir().'/http_cache');
8787
}
8888
}

Resources/config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
116116

117117
->set('http_cache.store', Store::class)
118118
->args([
119-
param('kernel.cache_dir').'/http_cache',
119+
param('kernel.share_dir').'/http_cache',
120120
])
121121
->alias(StoreInterface::class, 'http_cache.store')
122122

0 commit comments

Comments
 (0)