protected function getFileHash() { $files = $this->repo->getAllFiles(); $hash = ''; foreach ($files as $file) { $hash .= $file . '|'; $hash .= (string) filemtime($file) . '|'; } $hash = md5($hash); return $hash; }