From e9c204fbe992fcc404f5977d084af17c7f26bc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bouc=CC=8Cek?= Date: Mon, 17 May 2021 01:54:57 +0200 Subject: [PATCH] Detector: Add production mode Add compatibility with Nette framework --- src/Detector.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Detector.php b/src/Detector.php index af41cec..c6102b4 100644 --- a/src/Detector.php +++ b/src/Detector.php @@ -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; + } }