Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WebProfilerBundle][HttpKernel] removed import/export commands #15801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

3.0.0
-----

* removed profiler:import and profiler:export commands

2.8.0
-----

Expand Down
81 changes: 0 additions & 81 deletions src/Symfony/Bundle/WebProfilerBundle/Command/ExportCommand.php

This file was deleted.

96 changes: 0 additions & 96 deletions src/Symfony/Bundle/WebProfilerBundle/Command/ImportCommand.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/Symfony/Bundle/WebProfilerBundle/Resources/config/commands.xml

This file was deleted.

2 changes: 2 additions & 0 deletions src/Symfony/Component/HttpKernel/CHANGELOG.md
Original file line number Diff line number Diff line change
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 src/Symfony/Component/HttpKernel/Profiler/Profiler.php
Original file line number Diff line number Diff line change
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