mirror of
https://github.com/getgrav/grav.git
synced 2026-07-20 07:12:14 +02:00
Debugbar/Clockwork Toggle.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -125,6 +125,7 @@ log:
|
||||
|
||||
debugger:
|
||||
enabled: false # Enable Grav debugger and following settings
|
||||
provider: debugbar # Debugger provider
|
||||
shutdown:
|
||||
close_connection: true # Close the connection before calling onShutdown(). false for debugging
|
||||
|
||||
|
||||
@@ -116,11 +116,15 @@ class Debugger
|
||||
if ($this->enabled) {
|
||||
$this->initialized = true;
|
||||
|
||||
// Clockwork initialization.
|
||||
$this->clockwork = $clockwork = new Clockwork();
|
||||
$clockwork = $debugbar = null;
|
||||
|
||||
// Debugbar initialization.
|
||||
$this->debugbar = $debugbar = new DebugBar();
|
||||
switch ($this->config->get('system.debugger.provider', 'debugbar')) {
|
||||
case 'clockwork':
|
||||
$this->clockwork = $clockwork = new Clockwork();
|
||||
break;
|
||||
default:
|
||||
$this->debugbar = $debugbar = new DebugBar();
|
||||
}
|
||||
|
||||
$plugins_config = (array)$this->config->get('plugins');
|
||||
ksort($plugins_config);
|
||||
@@ -164,7 +168,7 @@ class Debugger
|
||||
$debugbar['time']->addMeasure('Site Setup', $this->currentTime, microtime(true));
|
||||
}
|
||||
|
||||
$this->addMessage('Grav v' . GRAV_VERSION);
|
||||
$this->addMessage('Grav v' . GRAV_VERSION . ' - PHP ' . PHP_VERSION);
|
||||
$this->config->debug();
|
||||
|
||||
if ($clockwork) {
|
||||
|
||||
Reference in New Issue
Block a user