示例#1
0
 public function assets()
 {
     return [function () {
         $renderer = $this->debugBar->getJavascriptRenderer();
         $renderer->setOpenHandlerUrl('/open.php');
         $this->debugBar->sendDataInHeaders(true);
         return $renderer->renderHead() . $renderer->render();
     }];
 }
示例#2
0
 /**
  * @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);
 }
示例#3
0
 /**
  * Sends the data through the HTTP headers
  *
  * @return $this
  */
 public function sendDataInHeaders()
 {
     $this->debugbar->sendDataInHeaders();
     return $this;
 }