From 518b20dc47138a7347357bf9fcbb6b339973c088 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 21 Nov 2020 20:20:23 +0100 Subject: [PATCH] Configurable result cache path --- conf/config.neon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/config.neon b/conf/config.neon index 3eacb38e60..bd425941a9 100644 --- a/conf/config.neon +++ b/conf/config.neon @@ -93,6 +93,7 @@ parameters: earlyTerminatingFunctionCalls: [] memoryLimitFile: %tmpDir%/.memory_limit tempResultCachePath: %tmpDir%/resultCaches + resultCachePath: %tmpDir%/resultCache.php staticReflectionClassNamePatterns: - '#^PhpParser\\#' - '#^PHPStan\\#' @@ -240,6 +241,7 @@ parametersSchema: earlyTerminatingFunctionCalls: listOf(string()) memoryLimitFile: string() tempResultCachePath: string() + resultCachePath: string() staticReflectionClassNamePatterns: listOf(string()) dynamicConstantNames: listOf(string()) customRulesetUsed: bool() @@ -390,7 +392,7 @@ services: - implement: PHPStan\Analyser\ResultCache\ResultCacheManagerFactory arguments: - cacheFilePath: %tmpDir%/resultCache.php + cacheFilePath: %resultCachePath% tempResultCachePath: %tempResultCachePath% analysedPaths: %analysedPaths% composerAutoloaderProjectPaths: %composerAutoloaderProjectPaths% @@ -401,7 +403,7 @@ services: - class: PHPStan\Analyser\ResultCache\ResultCacheClearer arguments: - cacheFilePath: %tmpDir%/resultCache.php + cacheFilePath: %resultCachePath% tempResultCachePath: %tempResultCachePath% -