no more needed

This commit is contained in:
Jean-Christian Paul Denis 2023-05-10 10:55:42 +02:00
parent f2d57bb376
commit 35ac3f1eec
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 3 additions and 15 deletions

View File

@ -27,8 +27,7 @@ class Backend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
static::$init = defined('DC_CONTEXT_ADMIN') static::$init = defined('DC_CONTEXT_ADMIN');
&& My::phpCompliant();
return static::$init; return static::$init;
} }

View File

@ -21,7 +21,7 @@ class Frontend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
static::$init = My::phpCompliant(); static::$init = defined('DC_RC_PATH');
return static::$init; return static::$init;
} }

View File

@ -21,9 +21,6 @@ use dcCore;
*/ */
class My class My
{ {
/** @var string This module required php version */
public const PHP_MIN = '7.4';
/** /**
* This module id. * This module id.
*/ */
@ -49,12 +46,4 @@ class My
{ {
return dirname(__DIR__); return dirname(__DIR__);
} }
/**
* Check this module PHP version compliant.
*/
public static function phpCompliant(): bool
{
return version_compare(phpversion(), self::PHP_MIN, '>=');
}
} }

View File

@ -26,7 +26,7 @@ class Prepend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
static::$init = My::phpCompliant(); static::$init = defined('DC_RC_PATH');
return static::$init; return static::$init;
} }