File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed 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 ` 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