diff --git a/src/Backend.php b/src/Backend.php index 928e86d..47882a0 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -27,7 +27,7 @@ class Backend extends dcNsProcess { public static function init(): bool { - static::$init = defined('DC_CONTEXT_ADMIN') && My::phpCompliant(); + static::$init = defined('DC_CONTEXT_ADMIN'); return static::$init; } diff --git a/src/Frontend.php b/src/Frontend.php index 4081882..2ed3f37 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -22,7 +22,7 @@ class Frontend extends dcNsProcess { public static function init(): bool { - static::$init = My::phpCompliant(); + static::$init = defined('DC_RC_PATH'); return static::$init; } diff --git a/src/My.php b/src/My.php index f5a8b68..6d5a7b3 100644 --- a/src/My.php +++ b/src/My.php @@ -33,9 +33,6 @@ class My 'waning_crescent_moon' => 'wcm2.png', ]; - /** @var string This module required php version */ - public const PHP_MIN = '7.4'; - /** * This module id. */ @@ -61,12 +58,4 @@ class My { return dirname(__DIR__); } - - /** - * Check this module PHP version compliant. - */ - public static function phpCompliant(): bool - { - return version_compare(phpversion(), self::PHP_MIN, '>='); - } } diff --git a/src/Prepend.php b/src/Prepend.php index 1fb0a3b..89c69fa 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -21,7 +21,7 @@ class Prepend extends dcNsProcess { public static function init(): bool { - static::$init = My::phpCompliant(); + static::$init = defined('DC_RC_PATH'); return static::$init; }