Skip to content

Commit

Permalink
profiler disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 5, 2023
1 parent 19c6a37 commit 4b95775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions etc/debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'editor' => env('DEBUGGER_EDITOR', 'phpstorm'),

'profiler_disabled' => false,

'listeners' => [
\Windwalker\Core\Application\AppContext::class => [
\Windwalker\Debugger\Subscriber\DebuggerSubscriber::class
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Application/ApplicationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ public function isMaintenance(): bool
*/
public function disableDebugProfiler(bool $disabled = true): void
{
$this->config->setDeep('app.debug_profiler.disabled', $disabled);
$this->config->setDeep('debugger.profiler_disabled', $disabled);
}

public function isDebugProfilerDisabled(): bool
{
return (bool) $this->config->getDeep('app.debug_profiler.disabled');
return (bool) $this->config->getDeep('debugger.profiler_disabled');
}

/**
Expand Down

0 comments on commit 4b95775

Please sign in to comment.