We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1627ff4 commit 7206951Copy full SHA for 7206951
Tests/Resources/app/AppKernel.php
@@ -11,6 +11,11 @@ class AppKernel extends Kernel
11
{
12
use MicroKernelTrait;
13
14
+ /**
15
+ * @var string
16
+ */
17
+ private static $cacheDir;
18
+
19
/**
20
* {@inheritdoc}
21
*/
@@ -55,7 +60,10 @@ protected function configureRoutes(RouteCollectionBuilder $routes)
55
60
56
61
public function getCacheDir()
57
62
58
- return sys_get_temp_dir().'/httplug-bundle/cache';
63
+ if (null === self::$cacheDir) {
64
+ self::$cacheDir = uniqid('cache');
65
+ }
66
+ return sys_get_temp_dir().'/httplug-bundle/'.self::$cacheDir;
59
67
}
68
69
0 commit comments