Skip to content

Commit 2e6a0c1

Browse files
committed
add attributes to request tab
1 parent ca05898 commit 2e6a0c1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/Panel/RequestPanel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function shutdown(EventInterface $event)
3535
$request = $controller->getRequest();
3636
$this->_data = [
3737
'params' => $request->getAttribute('params'),
38+
'attributes' => $request->getAttributes(),
3839
'query' => $request->getQueryParams(),
3940
'data' => $request->getData(),
4041
'cookie' => $request->getCookieParams(),

templates/element/request_panel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
<h4><?= __d('debug_kit', 'Routing Params') ?></h4>
3535
<?= $this->Toolbar->dump($params) ?>
3636

37+
<h4><?= __d('debug_kit', 'Attributes') ?></h4>
38+
<?= $this->Toolbar->dump($attributes); ?>
39+
3740
<h4><?= __d('debug_kit', 'Post data') ?></h4>
3841
<?php
3942
if (empty($data)):

0 commit comments

Comments
 (0)