You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,21 @@
1
+
# Upgrading from v2.9 to v3.0
2
+
3
+
## Breaking Changes
4
+
5
+
* The deprecated `Vich\UploaderBundle\Mapping\Annotation` namespace has been removed. Use `Vich\UploaderBundle\Mapping\Attribute` instead.
6
+
* The deprecated `AnnotationInterface` has been removed. Use `AttributeInterface` instead.
7
+
*`AttributeReader` deprecated methods have been removed: use `getClassAttribute()` instead of `getClassAnnotation()`, `getPropertyAttribute()` instead of `getPropertyAnnotation()`.
8
+
1
9
# Upgrading from v2.8 to v2.9
2
10
11
+
## Deprecations
12
+
13
+
* The `Vich\UploaderBundle\Mapping\Annotation` namespace is deprecated. Replace it with `Vich\UploaderBundle\Mapping\Attribute`;
14
+
The old namespace will be removed in version 3.0.
15
+
*`AttributeReader` methods: replace `*Annotation()` with `*Attribute()` (e.g., `getClassAnnotation()` → `getClassAttribute()`).
16
+
17
+
## New Features
18
+
3
19
* New `namer_keep_extension` configuration option to force namers to preserve original file extension.
4
20
* Custom namers using `namer_keep_extension: true` must implement `ConfigurableInterface`.
0 commit comments