Skip to content

Commit e9c204f

Browse files
committed
Detector: Add production mode
Add compatibility with Nette framework
1 parent d2c071d commit e9c204f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Detector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,9 @@ public static function detect(string $tempDir, ?bool $default = false): ?bool
118118
{
119119
return (new self($tempDir))->isDebugMode($default);
120120
}
121+
122+
public static function detectProductionMode(string $tempDir, ?bool $default = false): ?bool
123+
{
124+
return self::detect($tempDir, $default) === false;
125+
}
121126
}

0 commit comments

Comments
 (0)