Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 786d1cf

Browse filesBrowse files
committed
[HttpKernel] removed Profiler::import/export
1 parent 6547f4f commit 786d1cf
Copy full SHA for 786d1cf

File tree

2 files changed

+2
-40
lines changed
Filter options

2 files changed

+2
-40
lines changed

‎src/Symfony/Component/HttpKernel/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ CHANGELOG
2424
* removed `Symfony\Component\HttpKernel\HttpCache\EsiResponseCacheStrategyInterface`
2525
* removed `Symfony\Component\HttpKernel\Log\LoggerInterface`
2626
* removed `Symfony\Component\HttpKernel\Log\NullLogger`
27+
* removed `Symfony\Component\HttpKernel\Profiler::import()`
28+
* removed `Symfony\Component\HttpKernel\Profiler::export()`
2729

2830
2.8.0
2931
-----

‎src/Symfony/Component/HttpKernel/Profiler/Profiler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Profiler/Profiler.php
-40Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -131,46 +131,6 @@ public function purge()
131131
$this->storage->purge();
132132
}
133133

134-
/**
135-
* Exports the current profiler data.
136-
*
137-
* @param Profile $profile A Profile instance
138-
*
139-
* @return string The exported data
140-
*
141-
* @deprecated since Symfony 2.8, to be removed in 3.0.
142-
*/
143-
public function export(Profile $profile)
144-
{
145-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
146-
147-
return base64_encode(serialize($profile));
148-
}
149-
150-
/**
151-
* Imports data into the profiler storage.
152-
*
153-
* @param string $data A data string as exported by the export() method
154-
*
155-
* @return Profile A Profile instance
156-
*
157-
* @deprecated since Symfony 2.8, to be removed in 3.0.
158-
*/
159-
public function import($data)
160-
{
161-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
162-
163-
$profile = unserialize(base64_decode($data));
164-
165-
if ($this->storage->read($profile->getToken())) {
166-
return false;
167-
}
168-
169-
$this->saveProfile($profile);
170-
171-
return $profile;
172-
}
173-
174134
/**
175135
* Finds profiler tokens for the given criteria.
176136
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.