src/Viserio/Component/HttpFoundation/DataCollector/ViserioHttpDataCollector.php
public function getPanel(): string
    {
        $request     = $this->serverRequest;
        $response    = $this->response;
        $session     = $request->getAttribute('session');
        $sessionMeta = [];

        if ($session !== null) {
            $sessionMeta = [
                'Created'           => \date(\DATE_RFC2822, $session->getFirstTrace()),
                'Last used'         => \date(\DATE_RFC2822, $session->getLastTrace()),
                'Last regeneration' => \date(\DATE_RFC2822, $session->getRegenerationTrace()),
                'requestsCount'     => $session->getRequestsCount(),
                'fingerprint'       => $session->getFingerprint(),
            ];
        }

        return $this->createTabs([
            [
                'name'    => 'Request',
                'content' => $this->createTable(
                    $request->getQueryParams(),
                    [
                        'name'       => 'Get Parameters',
                        'empty_text' => 'No GET parameters',
                    ]
                ) . $this->createTable(
                        $this->getParsedBody($request),
                    [
                        'name'       => 'Post Parameters',
                        'empty_text' => 'No POST parameters',
                    ]
                ) . $this->createTable(
                    $this->prepareRequestAttributes($request->getAttributes()),
                    ['name' => 'Request Attributes']
                ) . $this->createTable(
                    $this->prepareRequestHeaders($request->getHeaders()),
                    ['name' => 'Request Headers']
                ) . $this->createTable(
                    $this->prepareServerParams($request->getServerParams()),
                    ['name' => 'Server Parameters']
                ),
            ],
            [
                'name'    => 'Response',
                'content' => $this->createTable(
                    $response->getHeaders(),
                    ['name' => 'Response Headers']
                ),
            ],
            $this->createCookieTab($request, $response),
            [
                'name'    => 'Session',
                'content' => $this->createTable(
                    $sessionMeta,
                    [
                        'name'       => 'Session Metadata',
                        'empty_text' => 'No session metadata',
                        'vardumper'  => false,
                    ]
                ) . $this->createTable(
                    $session !== null ? $session->getAll() : [],
                    [
                        'name'       => 'Session Attributes',
                        'empty_text' => 'No session attributes',
                    ]
                ),
            ],
            [
                'name'    => 'Flashes',
                'content' => $this->createTable(
                    $session !== null && $session->has('_flash') ? $session->get('_flash') : [],
                    [
                        'name'       => 'Flashes',
                        'empty_text' => 'No flash messages were created',
                    ]
                ),
            ],
        ]);
    }
public function getPanel(): string
    {
        $request     = $this->serverRequest;
        $response    = $this->response;
        $session     = $request->getAttribute('session');
        $sessionMeta = [];

        if ($session !== null) {
            $sessionMeta = [
                'Created'           => \date(\DATE_RFC2822, $session->getFirstTrace()),
                'Last used'         => \date(\DATE_RFC2822, $session->getLastTrace()),
                'Last regeneration' => \date(\DATE_RFC2822, $session->getRegenerationTrace()),
                'requestsCount'     => $session->getRequestsCount(),
                'fingerprint'       => $session->getFingerprint(),
            ];
        }

        return $this->createTabs([
            [
                'name'    => 'Request',
                'content' => $this->createTable(
                    $request->getQueryParams(),
                    [
                        'name'       => 'Get Parameters',
                        'empty_text' => 'No GET parameters',
                    ]
                ) . $this->createTable(
                        $this->getParsedBody($request),
                    [
                        'name'       => 'Post Parameters',
                        'empty_text' => 'No POST parameters',
                    ]
                ) . $this->createTable(
                    $this->prepareRequestAttributes($request->getAttributes()),
                    ['name' => 'Request Attributes']
                ) . $this->createTable(
                    $this->prepareRequestHeaders($request->getHeaders()),
                    ['name' => 'Request Headers']
                ) . $this->createTable(
                    $this->prepareServerParams($request->getServerParams()),
                    ['name' => 'Server Parameters']
                ),
            ],
            [
                'name'    => 'Response',
                'content' => $this->createTable(
                    $response->getHeaders(),
                    ['name' => 'Response Headers']
                ),
            ],
            $this->createCookieTab($request, $response),
            [
                'name'    => 'Session',
                'content' => $this->createTable(
                    $sessionMeta,
                    [
                        'name'       => 'Session Metadata',
                        'empty_text' => 'No session metadata',
                        'vardumper'  => false,
                    ]
                ) . $this->createTable(
                    $session !== null ? $session->getAll() : [],
                    [
                        'name'       => 'Session Attributes',
                        'empty_text' => 'No session attributes',
                    ]
                ),
            ],
            [
                'name'    => 'Flashes',
                'content' => $this->createTable(
                    $session !== null && $session->has('_flash') ? $session->get('_flash') : [],
                    [
                        'name'       => 'Flashes',
                        'empty_text' => 'No flash messages were created',
                    ]
                ),
            ],
        ]);
    }
{@inheritdoc}