Upgrading from v1.6.0 to 1.8.0
- we enforced, via type-hinting, as many parameters and return values as we can. This is formally a BC break, but likely you don't need to change anything in your code. Anyway, if you implemented an interface or extended a bundle class with your custom class, you need to check to be consistent with such type hinting.
Upgrading from v1.0.0 to 1.6.0
- the transliteration is now using
behat\transliteratorinstead of a custom one. Some minor differences are that dash is not preserved anymore and names are lowercased.
- the form option
download_linknow is deprecated, use
- BC-BREAK in order to fixing #704 for xml and yaml
mapping you should prepend relative from bundle sub-namespace to each mapping file.
For example for
Entity\Productmapping file would be renamed from
Upgrading from v0.14.0 to v1.0.0
No BC breaks.
Upgrading from v0.13.0 to v0.14.0
No BC breaks.
Upgrading from v0.12.0 to v0.13.0
resolveUriStorage methods now take a field name instead of a mapping name. The same goes for the UploaderExtension and UploaderHelper
assetmethod. This reverts the broken behavior introduced in v0.10.0.
mappingoption for form types is removed as the mapping to use is inferred from the field's name.
Upgrading from v0.11.0 to v0.12.0
storageconfiguration paramater changed. It accepts the name of the storage engine to use (file_system, gaufrette or flysystem).
flysystemconfiguration parameters were deleted.
Upgrading from v0.10.0 to v0.11.0
- Symfony versions prior to 2.3 are not supported anymore.
Upgrading from v0.9.0 to v0.10.0
inject_on_loadconfig param defaults to false. Set it to true if you want to keep your old behavior.
resolveUriStorage methods now take a mapping name instead of a field name. The same goes for the UploaderExtension and UploaderHelper
Upgrading from v0.5.0 to 0.6.0
getUriPrefixdefault value is now /uploads
delete_on_updateconfig param added. It defaults to true.
Upgrading from v0.4.0 to v0.5.0
gaufrette and KnpGaufretteBundle are now soft dependencies
storageconfiguration entry added.
web_dir_nameconfiguration entry deprecated.
upload_dirconfiguration entry renamed to
uri_prefixconfiguration entry added
vich_uploader.uploaderservice has been split into two new services for a more modular, separation of concerns approach. The new services are
vich_uploader.file_injector. The storage service is responsible for saving and removing files as well as resolving their path. The injector service is responsible for injecting
Fileinstances back into the object upon retrieval from the datastore.
Upgrading from v0.2.0 to v0.3.0
Annotations have changed namespace from
Vich\UploaderBundle\Mapping\Annotation. You will need to update your
usestatement for the annotations used in your entity or document classes.
mappingsconfiguration entry prototype has had a new option added to it. The
inject_on_loadconfig option specifies whether or not the uploadable fields should have an instnace of
Symfony\Component\HttpFoundation\File\Filecreated and injected into the property upon retrieval from the datastore. THis option has a default value of