protected function hash($path)
    {
        if (is_callable($this->hashCallback)) {
            return call_user_func($this->hashCallback, $path);
        }
        $path = (is_file($path) ? dirname($path) : $path) . filemtime($path);
        return sprintf('%x', crc32($path . Reaction::getVersion() . '|' . $this->linkAssets));
    }
protected function hash($path)
    {
        if (is_callable($this->hashCallback)) {
            return call_user_func($this->hashCallback, $path);
        }
        $path = (is_file($path) ? dirname($path) : $path) . filemtime($path);
        return sprintf('%x', crc32($path . Reaction::getVersion() . '|' . $this->linkAssets));
    }
protected function hash ( $ path ) { if ( is_callable ( $ this -> hashCallback ) ) { return call_user_func ( $ this -> hashCallback , $ path ) ; } $ path = ( is_file ( $ path ) ? dirname ( $ path ) : $ path ) . filemtime ( $ path ) ; return sprintf ( '%x' , crc32 ( $ path . Reaction :: getVersion ( ) . '|' . $ this -> linkAssets ) ) ; }
Generate a CRC32 hash for the directory path. Collisions are higher
than MD5 but generates a much smaller hash string.
@param string $path string to be hashed.
@return string hashed string.
Generate a CRC32 hash for the directory path . Collisions are higher than MD5 but generates a much smaller hash string .