src/View/Requirements_Backend.php
protected function hashOfFiles($fileList)
    {
        // Get hash based on hash of each file
        $hash = '';
        foreach ($fileList as $file) {
            $absolutePath = Director::getAbsFile($file);
            if (file_exists($absolutePath)) {
                $hash .= sha1_file($absolutePath);
            } else {
                throw new InvalidArgumentException("Combined file {$file} does not exist");
            }
        }
        return sha1($hash);
    }
protected function hashOfFiles($fileList)
    {
        // Get hash based on hash of each file
        $hash = '';
        foreach ($fileList as $file) {
            $absolutePath = Director::getAbsFile($file);
            if (file_exists($absolutePath)) {
                $hash .= sha1_file($absolutePath);
            } else {
                throw new InvalidArgumentException("Combined file {$file} does not exist");
            }
        }
        return sha1($hash);
    }
protected function hashOfFiles ( $ fileList ) { // Get hash based on hash of each file $ hash = '' ; foreach ( $ fileList as $ file ) { $ absolutePath = Director :: getAbsFile ( $ file ) ; if ( file_exists ( $ absolutePath ) ) { $ hash .= sha1_file ( $ absolutePath ) ; } else { throw new InvalidArgumentException ( "Combined file {$file} does not exist" ) ; } } return sha1 ( $ hash ) ; }
For a given filelist, determine some discriminating value to determine if
any of these files have changed.

@param array $fileList List of files
@return string SHA1 bashed file hash
For a given filelist determine some discriminating value to determine if any of these files have changed .