Skip to content

Commit c1d028e

Browse files
committed
[HttpKernel] removed Profiler::import/export
1 parent 1672a83 commit c1d028e

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy