Merge branch 'dev_profiling' of git.d3data.de:DanielS/DebugBar into dev_profiling
Dieser Commit ist enthalten in:
Commit
f36b13970e
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,9 @@ class ShopControl_DebugBar extends ShopControl_DebugBar_parent
|
||||
if (!isAdmin()) {
|
||||
/** @var DebugBarComponent $debugBarComponent */
|
||||
$debugBarComponent = Registry::getConfig()->getActiveView()->getComponent(DebugBarComponent::class);
|
||||
echo $debugBarComponent->debugBarRenderer->renderHead();
|
||||
echo $debugBarComponent->getRenderer()->renderHead();
|
||||
$debugBarComponent->addTimelineMessures();
|
||||
echo $debugBarComponent->debugBarRenderer->render();
|
||||
echo $debugBarComponent->getRenderer()->render();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren