8000 Ensure a split per environment · JudicaelR/symfony@06b793f · GitHub
[go: up one dir, main page]

Skip to content

Commit 06b793f

Browse files
committed
Ensure a split per environment
1 parent 4b22f97 commit 06b793f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ trait MicroKernelTrait
6868
*/
6969
public function getCacheDir(): string
7070
{
71-
return $_SERVER['APP_CACHE_DIR'] ?? parent::getCacheDir();
71+
if (isset($_SERVER['APP_CACHE_DIR'])) {
72+
return $_SERVER['APP_CACHE_DIR'].'/'.$this->environment;
73+
}
74+
75+
return parent::getCacheDir();
7276
}
7377

7478
/**

0 commit comments

Comments
 (0)
0