public static function definer(string $env):int
    {
        $base = realpath(__DIR__ . "/../../../../../../")."/";

        define('IUMIO_ENV', $env);
        define('IUMIO_ROOT', $base);

        $current = self::getProtocol()."://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
        $current_temp = substr($current, 0, strpos($current, self::getFileEnv($env)));
        if (strlen($current_temp) > 0) {
            $current = $current_temp;
        }
        if ($current[strlen($current) - 1] == "/") {
            $current = substr($current, 0, (strlen($current) - 1));
        }

        self::__setPaths($base, $env, $current);

        foreach (self::$framework_paths as $one => $val) {
            $container = FrameworkContainer::getInstance();
            $container->set($one, $val);
        }

        return (1);
    }
public static function definer(string $env):int
    {
        $base = realpath(__DIR__ . "/../../../../../../")."/";

        define('IUMIO_ENV', $env);
        define('IUMIO_ROOT', $base);

        $current = self::getProtocol()."://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
        $current_temp = substr($current, 0, strpos($current, self::getFileEnv($env)));
        if (strlen($current_temp) > 0) {
            $current = $current_temp;
        }
        if ($current[strlen($current) - 1] == "/") {
            $current = substr($current, 0, (strlen($current) - 1));
        }

        self::__setPaths($base, $env, $current);

        foreach (self::$framework_paths as $one => $val) {
            $container = FrameworkContainer::getInstance();
            $container->set($one, $val);
        }

        return (1);
    }
public static function definer ( string $ env ) : int { $ base = realpath ( __DIR__ . "/../../../../../../" ) . "/" ; define ( 'IUMIO_ENV' , $ env ) ; define ( 'IUMIO_ROOT' , $ base ) ; $ current = self :: getProtocol ( ) . "://" . $ _SERVER [ 'HTTP_HOST' ] . dirname ( $ _SERVER [ 'PHP_SELF' ] ) ; $ current_temp = substr ( $ current , 0 , strpos ( $ current , self :: getFileEnv ( $ env ) ) ) ; if ( strlen ( $ current_temp ) > 0 ) { $ current = $ current_temp ; } if ( $ current [ strlen ( $ current ) - 1 ] == "/" ) { $ current = substr ( $ current , 0 , ( strlen ( $ current ) - 1 ) ) ; } self :: __setPaths ( $ base , $ env , $ current ) ; foreach ( self :: $ framework_paths as $ one => $ val ) { $ container = FrameworkContainer :: getInstance ( ) ; $ container -> set ( $ one , $ val ) ; } return ( 1 ) ; }
Define all environment constants
@param string $env Environmment
@return int Is a success
@throws \Exception
Define all environment constants