File tree 2 files changed +13
-0
lines changed
src/Symfony/Component/HttpKernel
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 2.8.0
5
+ -----
6
+
7
+ * deprecated ` Profiler::import ` and ` Profiler::export `
8
+
4
9
2.7.0
5
10
-----
6
11
Original file line number Diff line number Diff line change @@ -137,9 +137,13 @@ public function purge()
137
137
* @param Profile $profile A Profile instance
138
138
*
139
139
* @return string The exported data
140
+ *
141
+ * @deprecated since Symfony 2.8, to be removed in 3.0.
140
142
*/
141
143
public function export (Profile $ profile )
142
144
{
145
+ @trigger_error ('The ' .__METHOD__ .' method is deprecated since version 2.8 and will be removed in 3.0. ' , E_USER_DEPRECATED );
146
+
143
147
return base64_encode (serialize ($ profile ));
144
148
}
145
149
@@ -149,9 +153,13 @@ public function export(Profile $profile)
149
153
* @param string $data A data string as exported by the export() method
150
154
*
151
155
* @return Profile A Profile instance
156
+ *
157
+ * @deprecated since Symfony 2.8, to be removed in 3.0.
152
158
*/
153
159
public function import ($ data )
154
160
{
161
+ @trigger_error ('The ' .__METHOD__ .' method is deprecated since version 2.8 and will be removed in 3.0. ' , E_USER_DEPRECATED );
162
+
155
163
$ profile = unserialize (base64_decode ($ data ));
156
164
157
165
if ($ this ->storage ->read ($ profile ->getToken ())) {
You can’t perform that action at this time.
0 commit comments