File tree 5 files changed +17
-10
lines changed
Filter options
src/Symfony/Component/Routing 5 files changed +17
-10
lines changed
Original file line number Diff line number Diff line change @@ -121,8 +121,9 @@ Routing
121
121
122
122
* The `generator_base_class`, `generator_cache_class`, `matcher_base_class`, and `matcher_cache_class` router
123
123
options have been deprecated.
124
- * Implementing `Serializable` for `Route` and `CompiledRoute` is deprecated; if you serialize them, please
125
- ensure your unserialization logic can recover from a failure related to an updated serialization format
124
+ * `Serializable` implementing methods for `Route` and `CompiledRoute` is are marked as `@internal` and `@final`.
125
+ Instead of overwriting them, use `__serialize` and `__unserialize` as extension points which are forward compatible
126
+ with the new serialization methods in PHP 7.4.
126
127
127
128
Security
128
129
--------
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ Routing
282
282
283
283
* The `generator_base_class`, `generator_cache_class`, `matcher_base_class`, and `matcher_cache_class` router
284
284
options have been removed.
285
- * `Route` and `CompiledRoute` don't implement `Serializable` anymore; if you serialize them, please
286
- ensure your unserialization logic can recover from a failure related to an updated serialization format
285
+ * `Serializable` implementing methods for `Route` and `CompiledRoute` are final.
286
+ Instead of overwriting them, use `__serialize` and `__unserialize` as extension points which are forward compatible
287
+ with the new serialization methods in PHP 7.4.
287
288
288
289
Security
289
290
--------
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ CHANGELOG
8
8
* added ` CompiledUrlGenerator ` and ` CompiledUrlGeneratorDumper `
9
9
* deprecated ` PhpGeneratorDumper ` and ` PhpMatcherDumper `
10
10
* deprecated ` generator_base_class ` , ` generator_cache_class ` , ` matcher_base_class ` and ` matcher_cache_class ` router options
11
- * deprecated implementing ` Serializable ` for ` Route ` and ` CompiledRoute ` ; if you serialize them, please
12
- ensure your unserialization logic can recover from a failure related to an updated serialization format
11
+ * ` Serializable ` implementing methods for ` Route ` and ` CompiledRoute ` is are marked as ` @internal ` and ` @final ` .
12
+ Instead of overwriting them, use ` __serialize ` and ` __unserialize ` as extension points which are forward compatible
13
+ with the new serialization methods in PHP 7.4.
13
14
* exposed ` utf8 ` Route option, defaults "locale" and "format" in configuration loaders and configurators
14
15
* added support for invokable route loader services
15
16
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ public function __serialize(): array
64
64
}
65
65
66
66
/**
67
- * @internal since Symfony 4.3, will be removed in Symfony 5 as the class won't implement Serializable anymore
67
+ * @internal since Symfony 4.3
68
+ * @final since Symfony 4.3
68
69
*/
69
70
public function serialize ()
70
71
{
@@ -84,7 +85,8 @@ public function __unserialize(array $data): void
84
85
}
85
86
86
87
/**
87
- * @internal since Symfony 4.3, will be removed in Symfony 5 as the class won't implement Serializable anymore
88
+ * @internal since Symfony 4.3
89
+ * @final since Symfony 4.3
88
90
*/
89
91
public function unserialize ($ serialized )
90
92
{
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ public function __serialize(): array
78
78
}
79
79
80
80
/**
81
- * @internal since Symfony 4.3, will be removed in Symfony 5 as the class won't implement Serializable anymore
81
+ * @internal since Symfony 4.3
82
+ * @final since Symfony 4.3
82
83
*/
83
84
public function serialize ()
84
85
{
@@ -104,7 +105,8 @@ public function __unserialize(array $data): void
104
105
}
105
106
106
107
/**
107
- * @internal since Symfony 4.3, will be removed in Symfony 5 as the class won't implement Serializable anymore
108
+ * @internal since Symfony 4.3
109
+ * @final since Symfony 4.3
108
110
*/
109
111
public function unserialize ($ serialized )
110
112
{
You can’t perform that action at this time.
0 commit comments