Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.01 KB

UPGRADE.md

File metadata and controls

21 lines (16 loc) · 1.01 KB

Upgrading from v2.1 to v2.2

  • The signature of StorageInterface::resolveStream method was changed. The $fieldName parameter is now nullable.
  • the AdapterInterface no longer requires getObjectFromArgs method.
  • the AdapterInterface::recomputeChangeSet() accepts Doctrine\Persistence\Event\LifecycleEventArgs as argument.

Upgrading from v2.0 to v2.1

  • the internal class FilenameUtils has been removed.

Upgrading from v1 to v2.0

  • every class marked as @final is now final
  • all properties are now fully type-hinted
  • all methods arguments are now fully type-hinted
  • all methods have now return types
  • all constructors now use property promotion
  • all deprecated features were removed
  • the new default type for mapping is "attribute". You can still use annotations, but you need an explicit definition (set "annotation" as value for "vich_uploader.metadata.type" config key)
  • the service "vich_uploader.current_date_time_helper" has been removed. The DateTimeHelper interface has been removed as well.