From 5f44bfe692e99e875fc4828c34e3bad4346f421c Mon Sep 17 00:00:00 2001 From: Stephan Huber Date: Fri, 25 Oct 2024 19:02:43 +0200 Subject: [PATCH] fix: temp dir is different per user now to provide permission issues --- src/AppKernel.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/AppKernel.php b/src/AppKernel.php index 02e1f176..083b64d6 100644 --- a/src/AppKernel.php +++ b/src/AppKernel.php @@ -27,14 +27,22 @@ public function registerContainerConfiguration(LoaderInterface $loader) */ public function getCacheDir() { - return sys_get_temp_dir() . '/phabalicious' . Utilities::FALLBACK_VERSION . md5(self::class); + + $dir = implode('-', [ + sys_get_temp_dir() . '/phabalicious', + Utilities::FALLBACK_VERSION, + getmyuid() , + md5(self::class) + ]); + + return $dir; } /** * Unique logs path for this Kernel */ public function getLogDir(): string { - return sys_get_temp_dir() . '/phabalicious' . Utilities::FALLBACK_VERSION . md5(self::class); + return $this->getCacheDir(); } protected function build(ContainerBuilder $containerBuilder)