Skip to content

Commit

Permalink
Add support for guzzlehttp/guzzle v7 and remove namshi/cuzzle package (
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavpavek committed Aug 22, 2020
1 parent c5c64a5 commit ef1c098
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -20,8 +20,7 @@
],
"require": {
"php": "^7.2",
"guzzlehttp/guzzle": "^6.3.3",
"namshi/cuzzle": "^2.0.3",
"guzzlehttp/guzzle": "^6.3.3|^7.0",
"nette/di": "~3.0.0",
"tracy/tracy": "~2.6.0|~2.7.0"
},
Expand Down
2 changes: 0 additions & 2 deletions src/Tracy/Panel.php
Expand Up @@ -3,7 +3,6 @@
namespace Contributte\Guzzlette\Tracy;

use Contributte\Guzzlette\SnapshotStack;
use Namshi\Cuzzle\Formatter\CurlFormatter;
use Tracy;

class Panel implements Tracy\IBarPanel
Expand Down Expand Up @@ -32,7 +31,6 @@ public function getTab(): string

public function getPanel(): string
{
$formatter = new CurlFormatter();
$snapshots = $this->snapshotStack->getSnapshots();

ob_start();
Expand Down
11 changes: 0 additions & 11 deletions src/Tracy/templates/panel.phtml
Expand Up @@ -17,17 +17,6 @@
<?= htmlspecialchars($request->getUri(), ENT_QUOTES); ?>
<br>

<strong>
<a class="tracy-toggle tracy-collapsed" href="#"
data-tracy-ref="#nette-addons-Guzzlette-<?= $counter; ?>">CURL</a>
</strong>
<div class="tracy-collapsed" id="nette-addons-Guzzlette-<?= $counter; ?>">
<textarea readonly onclick="this.focus();this.select();" rows="5"
style="background: #F4F3F1; padding: 4px; width: 600px; resize: none;"><?= htmlspecialchars($formatter->format($request), ENT_QUOTES); ?></textarea>
</div>

<br>

<strong>Headers:</strong>
<?= \Tracy\Dumper::toHtml($request->getHeaders(), [
\Tracy\Dumper::COLLAPSE_COUNT => 1,
Expand Down

0 comments on commit ef1c098

Please sign in to comment.