Skip to content

Commit

Permalink
Detector: Add production mode
Browse files Browse the repository at this point in the history
Add compatibility with Nette framework
  • Loading branch information
jakubboucek committed May 16, 2021
1 parent d2c071d commit e9c204f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ public static function detect(string $tempDir, ?bool $default = false): ?bool
{
return (new self($tempDir))->isDebugMode($default);
}

public static function detectProductionMode(string $tempDir, ?bool $default = false): ?bool
{
return self::detect($tempDir, $default) === false;
}
}

0 comments on commit e9c204f

Please sign in to comment.