Skip to content

Commit

Permalink
TracyExtension: added option 'emailSnooze' [Closes #515]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 8, 2021
1 parent a4276e9 commit bfb0d55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bridges/Nette/TracyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function getConfigSchema(): Nette\Schema\Schema
return Expect::structure([
'email' => Expect::anyOf(Expect::email(), Expect::listOf('email'))->dynamic(),
'fromEmail' => Expect::email()->dynamic(),
'emailSnooze' => Expect::string()->dynamic(),
'logSeverity' => Expect::anyOf(Expect::scalar(), Expect::listOf('scalar')),
'editor' => Expect::string()->dynamic(),
'browser' => Expect::string()->dynamic(),
Expand Down Expand Up @@ -95,6 +96,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
static $tbl = [
'keysToHide' => 'array_push(Tracy\Debugger::getBlueScreen()->keysToHide, ... ?)',
'fromEmail' => 'Tracy\Debugger::getLogger()->fromEmail = ?',
'emailSnooze' => 'Tracy\Debugger::getLogger()->emailSnooze = ?',
];
$initialize->addBody($builder->formatPhp(
($tbl[$key] ?? 'Tracy\Debugger::$' . $key . ' = ?') . ';',
Expand Down

0 comments on commit bfb0d55

Please sign in to comment.