Commit b1f2bbf7 authored by Tomáš Pospíšil's avatar Tomáš Pospíšil
Browse files

display bars only in developpment mode

parent dc9ad6c4
......@@ -62,7 +62,7 @@ final class Registrator
private function addPanel(string $method, callable $panelCreator): void
{
if (PHP_SAPI !== 'cli' && !array_key_exists($method, self::$registeredPanels) && Debugger::isEnabled()) {
if (PHP_SAPI !== 'cli' && !array_key_exists($method, self::$registeredPanels) && Debugger::$productionMode === Debugger::DEVELOPMENT) {
$panel = $panelCreator();
assert($panel instanceof IBarPanel);
self::$registeredPanels[$method] = $panel;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment