PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
barryvdh
/
laravel-debugbar
/
src
/
DataCollector
<?php namespace Barryvdh\Debugbar\DataCollector; use DebugBar\DataCollector\DataCollector; use DebugBar\DataCollector\DataCollectorInterface; use DebugBar\DataCollector\Renderable; class SessionCollector extends DataCollector implements DataCollectorInterface, Renderable { /** @var \Symfony\Component\HttpFoundation\Session\SessionInterface|\Illuminate\Contracts\Session\Session $session */ protected $session; /** * Create a new SessionCollector * * @param \Symfony\Component\HttpFoundation\Session\SessionInterface|\Illuminate\Contracts\Session\Session $session */ public function __construct($session) { $this->session = $session; } /** * {@inheritdoc} */ public function collect() { $data = []; foreach ($this->session->all() as $key => $value) { $data[$key] = is_string($value) ? $value : $this->formatVar($value); } return $data; } /** * {@inheritDoc} */ public function getName() { return 'session'; } /** * {@inheritDoc} */ public function getWidgets() { return [ "session" => [ "icon" => "archive", "widget" => "PhpDebugBar.Widgets.VariableListWidget", "map" => "session", "default" => "{}" ] ]; } }
[-] CacheCollector.php
[edit]
[-] LaravelCollector.php
[edit]
[+]
..
[-] PhpInfoCollector.php
[edit]
[-] SessionCollector.php
[edit]
[-] ModelsCollector.php
[edit]
[-] ViewCollector.php
[edit]
[-] FilesCollector.php
[edit]
[-] EventCollector.php
[edit]
[-] LivewireCollector.php
[edit]
[-] MultiAuthCollector.php
[edit]
[-] RequestCollector.php
[edit]
[-] RouteCollector.php
[edit]
[-] LogsCollector.php
[edit]
[-] GateCollector.php
[edit]
[-] QueryCollector.php
[edit]