File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4+ 2.8.0
5+ -----
6+
7+ * deprecated ` Profiler::import ` and ` Profiler::export `
8+
492.7.0
510-----
611
Original file line number Diff line number Diff line change @@ -137,9 +137,13 @@ public function purge()
137137 * @param Profile $profile A Profile instance
138138 *
139139 * @return string The exported data
140+ *
141+ * @deprecated since Symfony 2.8, to be removed in 3.0.
140142 */
141143 public function export (Profile $ profile )
142144 {
145+ @trigger_error ('The ' .__METHOD__ .' method is deprecated since version 2.8 and will be removed in 3.0. ' , E_USER_DEPRECATED );
146+
143147 return base64_encode (serialize ($ profile ));
144148 }
145149
@@ -149,9 +153,13 @@ public function export(Profile $profile)
149153 * @param string $data A data string as exported by the export() method
150154 *
151155 * @return Profile A Profile instance
156+ *
157+ * @deprecated since Symfony 2.8, to be removed in 3.0.
152158 */
153159 public function import ($ data )
154160 {
161+ @trigger_error ('The ' .__METHOD__ .' method is deprecated since version 2.8 and will be removed in 3.0. ' , E_USER_DEPRECATED );
162+
155163 $ profile = unserialize (base64_decode ($ data ));
156164
157165 if ($ this ->storage ->read ($ profile ->getToken ())) {
You can’t perform that action at this time.
0 commit comments