Bolt\Asset\BoltVersionStrategy::getVersion PHP Method

getVersion() public method

public getVersion ( $path )
    public function getVersion($path)
    {
        $file = $this->directory->getFile($path);
        try {
            return substr(md5($this->baseSalt . $file->getFullPath() . $file->getTimestamp()), 0, 10);
        } catch (IOException $e) {
            return '';
        }
    }