Skip to content

Commit

Permalink
[HttpKernel] removed Profiler::import/export
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed Sep 15, 2015
1 parent 84d917c commit 3ee0f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,8 @@ CHANGELOG
* removed `Symfony\Component\HttpKernel\HttpCache\EsiResponseCacheStrategyInterface`
* removed `Symfony\Component\HttpKernel\Log\LoggerInterface`
* removed `Symfony\Component\HttpKernel\Log\NullLogger`
* removed `Symfony\Component\HttpKernel\Profiler::import()`
* removed `Symfony\Component\HttpKernel\Profiler::export()`

2.8.0
-----
Expand Down
40 changes: 0 additions & 40 deletions Profiler/Profiler.php
Expand Up @@ -131,46 +131,6 @@ public function purge()
$this->storage->purge();
}

/**
* Exports the current profiler data.
*
* @param Profile $profile A Profile instance
*
* @return string The exported data
*
* @deprecated since Symfony 2.8, to be removed in 3.0.
*/
public function export(Profile $profile)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);

return base64_encode(serialize($profile));
}

/**
* Imports data into the profiler storage.
*
* @param string $data A data string as exported by the export() method
*
* @return Profile A Profile instance
*
* @deprecated since Symfony 2.8, to be removed in 3.0.
*/
public function import($data)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);

$profile = unserialize(base64_decode($data));

if ($this->storage->read($profile->getToken())) {
return false;
}

$this->saveProfile($profile);

return $profile;
}

/**
* Finds profiler tokens for the given criteria.
*
Expand Down

0 comments on commit 3ee0f16

Please sign in to comment.