public function __construct($config, Request $request = null, Application $app = null) { $this->request = is_null($request) === true ? Request::capture() : $request; $this->ajax = $this->request->ajax(); $this->app = $app; $this->accepts = Arr::get($config, 'accepts', []); $this->showBar = Arr::get($config, 'showBar', false); $this->bar = Debugger::getBar(); $this->initializeTracyDebuger($config); $this->loadPanels($config); }