final public static function detectFirstInstallation():int
    {
        $file = JL::open(FEnv::get("framework.config.core.config.file"));
        if (!isset($file->installation) || ($file->installation == null)) {
            if (file_exists(FEnv::get("framework.root").'public/setup/setup.php')) {
                header('Location: '.FEnv::get("host.current").'/setup/setup.php');
                exit(1);
            } else {
                throw new \RuntimeException("(Setup components does not exist in web directory => Please download ".
                    "the setup components on iumio Framework Website to fix this error and put him in web directory)");
            }
        }
        return (0);
    }
final public static function detectFirstInstallation():int
    {
        $file = JL::open(FEnv::get("framework.config.core.config.file"));
        if (!isset($file->installation) || ($file->installation == null)) {
            if (file_exists(FEnv::get("framework.root").'public/setup/setup.php')) {
                header('Location: '.FEnv::get("host.current").'/setup/setup.php');
                exit(1);
            } else {
                throw new \RuntimeException("(Setup components does not exist in web directory => Please download ".
                    "the setup components on iumio Framework Website to fix this error and put him in web directory)");
            }
        }
        return (0);
    }
final public static function detectFirstInstallation ( ) : int { $ file = JL :: open ( FEnv :: get ( "framework.config.core.config.file" ) ) ; if ( ! isset ( $ file -> installation ) || ( $ file -> installation == null ) ) { if ( file_exists ( FEnv :: get ( "framework.root" ) . 'public/setup/setup.php' ) ) { header ( 'Location: ' . FEnv :: get ( "host.current" ) . '/setup/setup.php' ) ; exit ( 1 ) ; } else { throw new \ RuntimeException ( "(Setup components does not exist in web directory => Please download " . "the setup components on iumio Framework Website to fix this error and put him in web directory)" ) ; } } return ( 0 ) ; }
Detect if it is a first install
@return int The success or failure
@throws Server500 File installer.php not exists
Detect if it is a first install