Skip to content

Commit cc2aeb1

Browse files
committed
feature #15801 [WebProfilerBundle][HttpKernel] removed import/export commands (jakzal)
This PR was merged into the 3.0-dev branch. Discussion ---------- [WebProfilerBundle][HttpKernel] removed import/export commands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | part of #11742 | License | MIT | Doc PR | n/a Follow up for #15709. Commits ------- c1d028e [HttpKernel] removed Profiler::import/export 1672a83 [WebProfilerBundle] removed import/export commands
2 parents 538a71d + c1d028e commit cc2aeb1

File tree

6 files changed

+7
-235
lines changed

6 files changed

+7
-235
lines changed

src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
3.0.0
5+
-----
6+
7+
* removed profiler:import and profiler:export commands
8+
49
2.8.0
510
-----
611

src/Symfony/Bundle/WebProfilerBundle/Command/ExportCommand.php

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/Symfony/Bundle/WebProfilerBundle/Command/ImportCommand.php

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/Symfony/Bundle/WebProfilerBundle/Resources/config/commands.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

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)