Gregwar / ImageBundle

Image manipulation bundle for Symfony 2
MIT License
195 stars 50 forks source link

service 'templating.helper.assets' -> getUrl should set null for version number #97

Open tomsykes opened 8 years ago

tomsykes commented 8 years ago

Within the ImageHandling service, the createInstance() method makes a call upon the templating.helper.assets service to getUrl().

Since the thumbnails use hashes for file names, there is no need for cache busting these files, and indeed cache busting them will simply cause an overhead.

public function getUrl($path, $packageName = null, $version = null)

Is there a way to call getUrl and override the version set from config.yml (framework.templating.assets_version) with no version? False? Empty string?