Skip to content

Commit

Permalink
Configurable result cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 21, 2020
1 parent b5a2fe2 commit 518b20d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ parameters:
earlyTerminatingFunctionCalls: []
memoryLimitFile: %tmpDir%/.memory_limit
tempResultCachePath: %tmpDir%/resultCaches
resultCachePath: %tmpDir%/resultCache.php
staticReflectionClassNamePatterns:
- '#^PhpParser\\#'
- '#^PHPStan\\#'
Expand Down Expand Up @@ -240,6 +241,7 @@ parametersSchema:
earlyTerminatingFunctionCalls: listOf(string())
memoryLimitFile: string()
tempResultCachePath: string()
resultCachePath: string()
staticReflectionClassNamePatterns: listOf(string())
dynamicConstantNames: listOf(string())
customRulesetUsed: bool()
Expand Down Expand Up @@ -390,7 +392,7 @@ services:
-
implement: PHPStan\Analyser\ResultCache\ResultCacheManagerFactory
arguments:
cacheFilePath: %tmpDir%/resultCache.php
cacheFilePath: %resultCachePath%
tempResultCachePath: %tempResultCachePath%
analysedPaths: %analysedPaths%
composerAutoloaderProjectPaths: %composerAutoloaderProjectPaths%
Expand All @@ -401,7 +403,7 @@ services:
-
class: PHPStan\Analyser\ResultCache\ResultCacheClearer
arguments:
cacheFilePath: %tmpDir%/resultCache.php
cacheFilePath: %resultCachePath%
tempResultCachePath: %tempResultCachePath%

-
Expand Down

0 comments on commit 518b20d

Please sign in to comment.