Merge branch 'dev_profiling' of git.d3data.de:DanielS/DebugBar into dev_profiling

This commit is contained in:
2022-08-01 22:27:28 +02:00
2 changed files with 12 additions and 14 deletions

View File

@ -98,16 +98,6 @@ class DebugBarComponent extends BaseController
return new SmartyCollector(Registry::getUtilsView()->getSmarty());
}
/**
* @return string|null
*/
public function render()
{
$this->getParent()->addTplParam('debugBarRenderer', $this->debugBarRenderer);
$this->getParent()->addTplParam('debugBarComponent', $this);
return parent::render();
}
/**
* @param $object
* @param $propName
@ -149,4 +139,12 @@ class DebugBarComponent extends BaseController
$property->setAccessible(true);
$property->setValue($this->debugBar, $collectors);
}
}
/**
* @return JavascriptRenderer
*/
public function getRenderer(): JavascriptRenderer
{
return $this->debugBarRenderer;
}
}