public function assets() { return [function () { $renderer = $this->debugBar->getJavascriptRenderer(); $renderer->setOpenHandlerUrl('/open.php'); $this->debugBar->sendDataInHeaders(true); return $renderer->renderHead() . $renderer->render(); }]; }
/** * @param string $autoloadPath */ public function initAjaxDebuger($autoloadPath) { $uploadDir = $this->getUploadDir(); $this->initOpenHandler($uploadDir['path'], $autoloadPath); $this->setStorage($uploadDir['path']); $this->debugBar->getJavascriptRenderer()->setOpenHandlerUrl($uploadDir['url'] . '/open.php'); $this->debugBar->sendDataInHeaders(true); }
/** * Sends the data through the HTTP headers * * @return $this */ public function sendDataInHeaders() { $this->debugbar->sendDataInHeaders(); return $this; }