|
@@ -314,7 +314,7 @@ discard block |
|
|
block discarded – undo |
|
314
|
314
|
*/ |
|
315
|
315
|
public function setCacheDir(string $cacheDir): GsonBuilder |
|
316
|
316
|
{ |
|
317
|
|
- $this->cacheDir = $cacheDir.'/gson'; |
|
|
317
|
+ $this->cacheDir = $cacheDir . '/gson'; |
|
318
|
318
|
|
|
319
|
319
|
return $this; |
|
320
|
320
|
} |
|
@@ -335,14 +335,14 @@ discard block |
|
|
block discarded – undo |
|
335
|
335
|
$propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy(); |
|
336
|
336
|
$methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy(); |
|
337
|
337
|
|
|
338
|
|
- $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
|
338
|
+ $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
339
|
339
|
$doctrineAnnotationCache->setNamespace('doctrine_annotation_cache'); |
|
340
|
340
|
$reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache); |
|
341
|
341
|
|
|
342
|
342
|
$cache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
343
|
343
|
$cache->setNamespace('property_collection_cache'); |
|
344
|
344
|
|
|
345
|
|
- $annotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
|
345
|
+ $annotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
346
|
346
|
$annotationCache->setNamespace('annotation_cache'); |
|
347
|
347
|
|
|
348
|
348
|
$typeAdapterCache = new ArrayCache(); |
Please login to merge, or discard this patch.