|
MediaWiki master
|
Generate hash digests of file contents to help with cache invalidation. More...

Public Member Functions | |
| __construct () | |
Static Public Member Functions | |
| static | getFileContentsHash ( $filePaths) |
| Get a hash of the combined contents of one or more files, either by retrieving a previously-computed hash from the cache, or by computing a hash from the files. | |
| static | singleton () |
| Get the singleton instance of this class. | |
Protected Attributes | |
| BagOStuff | $cache |
Generate hash digests of file contents to help with cache invalidation.
Definition at line 16 of file FileContentsHasher.php.
| MediaWiki\Utils\FileContentsHasher::__construct | ( | ) |
Definition at line 25 of file FileContentsHasher.php.
|
static |
Get a hash of the combined contents of one or more files, either by retrieving a previously-computed hash from the cache, or by computing a hash from the files.
| string | string[] | $filePaths | One or more file paths. |
Definition at line 81 of file FileContentsHasher.php.
References MediaWiki\Utils\FileContentsHasher\singleton().
Referenced by MediaWiki\Html\TemplateParser\compile(), and MediaWiki\Html\TemplateParser\getTemplate().
|
static |
Get the singleton instance of this class.
Definition at line 34 of file FileContentsHasher.php.
Referenced by MediaWiki\Utils\FileContentsHasher\getFileContentsHash().
|
protected |
Definition at line 20 of file FileContentsHasher.php.