Skip to content

Commit fdf7daf

Browse files
committed
remove params from request panel
1 parent 2e6a0c1 commit fdf7daf

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

src/Panel/RequestPanel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function shutdown(EventInterface $event)
3434
$controller = $event->getSubject();
3535
$request = $controller->getRequest();
3636
$this->_data = [
37-
'params' => $request->getAttribute('params'),
3837
'attributes' => $request->getAttributes(),
3938
'query' => $request->getQueryParams(),
4039
'data' => $request->getData(),

templates/element/request_panel.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @var \DebugKit\View\AjaxView $this
2121
* @var array $headers
22-
* @var array $params
22+
* @var array $attributes
2323
* @var array $data
2424
* @var array $query
2525
* @var array $cookie
@@ -31,9 +31,6 @@
3131
<?= '<p class="warning">' . __d('debug_kit', 'Headers already sent at file {0} and line {1}.', [$headers['file'], $headers['line']]) . '</p>' ?>
3232
<?php endif; ?>
3333

34-
<h4><?= __d('debug_kit', 'Routing Params') ?></h4>
35-
<?= $this->Toolbar->dump($params) ?>
36-
3734
<h4><?= __d('debug_kit', 'Attributes') ?></h4>
3835
<?= $this->Toolbar->dump($attributes); ?>
3936

tests/TestCase/Controller/PanelsControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testView()
8383

8484
$this->assertResponseOk();
8585
$this->assertResponseContains('Request</h2>');
86-
$this->assertResponseContains('Routing Params</h4>');
86+
$this->assertResponseContains('Attributes</h4>');
8787
}
8888

8989
/**

tests/TestCase/FixtureFactoryTrait.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ protected function makePanel($request, $name = 'DebugKit.Request', $title = 'Req
3232
{
3333
if ($content === null) {
3434
$content = [
35-
'params' => [
36-
'plugin' => null,
37-
'controller' => 'Tasks',
38-
'action' => 'add',
39-
'_ext' => null,
40-
'pass' => [],
35+
'attributes' => [
36+
'params' => [
37+
'plugin' => null,
38+
'controller' => 'Tasks',
39+
'action' => 'add',
40+
'_ext' => null,
41+
'pass' => [],
42+
],
4143
],
4244
'query' => [],
4345
'data' => [],

0 commit comments

Comments
 (0)