Skip to content

Commit 67c1af7

Browse files
committed
Refactor Symfony cache directory
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent d313c17 commit 67c1af7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Kernel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ public function boot(): void
4545
$_SERVER['COMPOSER_CACHE_DIR'] = $this->container->getParameter('dirigent.storage.path') . '/composer-cache';
4646
$_SERVER['COMPOSER_HOME'] = $this->container->getParameter('dirigent.storage.path') . '/composer';
4747
}
48+
49+
#[\Override]
50+
public function getCacheDir(): string
51+
{
52+
return sprintf('%s/var/cache/symfony/%s', $this->getProjectDir(), $this->environment);
53+
}
4854
}

0 commit comments

Comments
 (0)