protected static function getUrlFileDependencyVersion(AssetTypeInterface $assetType, $url, $version)
    {
        if ('#' !== $version) {
            return substr($version, 1);
        }

        if (preg_match('/(\d+)(\.\d+)(\.\d+)?(\.\d+)?/', $url, $match)) {
            return $assetType->getVersionConverter()->convertVersion($match[0]);
        }

        return '0.0.0.0';
    }
protected static function getUrlFileDependencyVersion(AssetTypeInterface $assetType, $url, $version)
    {
        if ('#' !== $version) {
            return substr($version, 1);
        }

        if (preg_match('/(\d+)(\.\d+)(\.\d+)?(\.\d+)?/', $url, $match)) {
            return $assetType->getVersionConverter()->convertVersion($match[0]);
        }

        return '0.0.0.0';
    }
protected static function getUrlFileDependencyVersion ( AssetTypeInterface $ assetType , $ url , $ version ) { if ( '#' !== $ version ) { return substr ( $ version , 1 ) ; } if ( preg_match ( '/(\d+)(\.\d+)(\.\d+)?(\.\d+)?/' , $ url , $ match ) ) { return $ assetType -> getVersionConverter ( ) -> convertVersion ( $ match [ 0 ] ) ; } return '0.0.0.0' ; }
Get the version of url file dependency.

@param AssetTypeInterface $assetType The asset type
@param string             $url       The url
@param string             $version   The version

@return string The version
Get the version of url file dependency .