MediaWiki
master
|
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. More... | |
static | singleton () |
Get the singleton instance of this class. More... | |
Protected Attributes | |
BagOStuff | $cache |
Definition at line 22 of file FileContentsHasher.php.
FileContentsHasher::__construct | ( | ) |
Definition at line 31 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 87 of file FileContentsHasher.php.
References $hashes, and singleton().
Referenced by MediaWiki\Html\TemplateParser\compile(), MediaWiki\ResourceLoader\FileModule\compileLessString(), MediaWiki\Html\TemplateParser\getTemplate(), and MediaWiki\ResourceLoader\Module\safeFileHash().
|
static |
Get the singleton instance of this class.
Definition at line 40 of file FileContentsHasher.php.
Referenced by getFileContentsHash().
|
protected |
Definition at line 26 of file FileContentsHasher.php.