From ea7a61d40050ec10f880802c4e0396fad64bcb28 Mon Sep 17 00:00:00 2001 From: Stephan Huber Date: Mon, 11 Nov 2024 23:18:09 +0100 Subject: [PATCH] fix: Fix temporary folder --- src/AppKernel.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/AppKernel.php b/src/AppKernel.php index 083b64d6..d2559a29 100644 --- a/src/AppKernel.php +++ b/src/AppKernel.php @@ -14,24 +14,23 @@ class AppKernel extends Kernel /** * @return BundleInterface[] */ - public function registerBundles() + public function registerBundles(): array { return []; } - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(__DIR__ . '/../config/services.yml'); } /** * Unique cache path for this Kernel */ - public function getCacheDir() + public function getCacheDir(): string { - $dir = implode('-', [ sys_get_temp_dir() . '/phabalicious', Utilities::FALLBACK_VERSION, - getmyuid() , + posix_getuid(), md5(self::class) ]); @@ -45,7 +44,7 @@ public function getLogDir(): string return $this->getCacheDir(); } - protected function build(ContainerBuilder $containerBuilder) + protected function build(ContainerBuilder $containerBuilder): void { $containerBuilder->addCompilerPass(new CollectCommandsToApplicationCompilerPass()); $containerBuilder->addCompilerPass(new CollectMethodsToFactoryCompilerPass());