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
feature #61487 [Routing][Serializer] Deprecate annotation aliases and getters and setters in favor of public properties on attributes (nicolas-grekas)
This PR was merged into the 7.4 branch.
Discussion
----------
[Routing][Serializer] Deprecate annotation aliases and getters and setters in favor of public properties on attributes
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Issues | -
| License | MIT
Let's remove more needless boilerplate.
These deprecations shouldn't affect anyone since I don't expected other code than ours to read these attributes.
Note that I don't make properties on `Route` readonly because of the existing setters.
(Note also that having readonly on the other attribute properties isn't useful in pragmatic terms, that's mostly pedantic ;) )
Commits
-------
d179c52 [Routing][Serializer] Deprecate annotation aliases and getters and setters in favor of public properties on attributes
Copy file name to clipboardExpand all lines: UPGRADE-7.4.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,8 @@ Mime
77
77
Routing
78
78
-------
79
79
80
-
* Deprecate `getEnv()` and `setEnv()` methods of the `Symfony\Component\Routing\Attribute\Route` class in favor of the plurialized `getEnvs()` and `setEnvs()` methods
80
+
* Deprecate class aliases in the `Annotation` namespace, use attributes instead
81
+
* Deprecate getters and setters in attribute classes in favor of public properties
81
82
82
83
Security
83
84
--------
@@ -90,6 +91,8 @@ Serializer
90
91
----------
91
92
92
93
* Make `AttributeMetadata` and `ClassMetadata` final
94
+
* Deprecate class aliases in the `Annotation` namespace, use attributes instead
95
+
* Deprecate getters in attribute classes in favor of public properties
0 commit comments