PHP Class PhpCsFixer\Cache\FileCacheManager

Cache is supported only for phar version and version installed via composer. File will be processed by PHP CS Fixer only if any of the following conditions is fulfilled: - cache is corrupt - fixer version changed - rules changed - file is new - file changed
Author: Dariusz Rumiński ([email protected])
Inheritance: implements PhpCsFixer\Cache\CacheManagerInterface
Afficher le fichier Open project: friendsofphp/php-cs-fixer Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( PhpCsFixer\Cache\FileHandlerInterface $handler, PhpCsFixer\Cache\SignatureInterface $signature, boolean $isDryRun = false, PhpCsFixer\Cache\DirectoryInterface $cacheDirectory = null )
__destruct ( )
needFixing ( $file, $fileContent )
setFile ( $file, $fileContent )

Private Methods

Méthode Description
calcHash ( $content )
readCache ( )
writeCache ( )

Method Details

__construct() public méthode

public __construct ( PhpCsFixer\Cache\FileHandlerInterface $handler, PhpCsFixer\Cache\SignatureInterface $signature, boolean $isDryRun = false, PhpCsFixer\Cache\DirectoryInterface $cacheDirectory = null )
$handler PhpCsFixer\Cache\FileHandlerInterface
$signature PhpCsFixer\Cache\SignatureInterface
$isDryRun boolean
$cacheDirectory PhpCsFixer\Cache\DirectoryInterface

__destruct() public méthode

public __destruct ( )

needFixing() public méthode

public needFixing ( $file, $fileContent )

setFile() public méthode

public setFile ( $file, $fileContent )