public static function enableComponents(string $env)
    {
        $base = realpath(__DIR__ . "/../../../../../../")."/";
        $f = json_decode(file_get_contents($base."elements/config_files/core/framework.config.json"));
        if (in_array($env, array("dev", "prod"))) {
            if ("dev" === $env) {
                TaskBar::switchStatus(((true  === $f->taskbar_dev)? "on" : "off"));
            } elseif ("prod" === $env) {
                TaskBar::switchStatus(((true  === $f->taskbar_prod)? "on" : "off"));
            }
            if (property_exists($f, "debug") &&
                property_exists($f->debug, $env) && true === $f->debug->$env) {
                Debug::enabled();
            } else {
                Debug::disabled();
            }
        }
    }
public static function enableComponents(string $env)
    {
        $base = realpath(__DIR__ . "/../../../../../../")."/";
        $f = json_decode(file_get_contents($base."elements/config_files/core/framework.config.json"));
        if (in_array($env, array("dev", "prod"))) {
            if ("dev" === $env) {
                TaskBar::switchStatus(((true  === $f->taskbar_dev)? "on" : "off"));
            } elseif ("prod" === $env) {
                TaskBar::switchStatus(((true  === $f->taskbar_prod)? "on" : "off"));
            }
            if (property_exists($f, "debug") &&
                property_exists($f->debug, $env) && true === $f->debug->$env) {
                Debug::enabled();
            } else {
                Debug::disabled();
            }
        }
    }
public static function enableComponents ( string $ env ) { $ base = realpath ( __DIR__ . "/../../../../../../" ) . "/" ; $ f = json_decode ( file_get_contents ( $ base . "elements/config_files/core/framework.config.json" ) ) ; if ( in_array ( $ env , array ( "dev" , "prod" ) ) ) { if ( "dev" === $ env ) { TaskBar :: switchStatus ( ( ( true === $ f -> taskbar_dev ) ? "on" : "off" ) ) ; } elseif ( "prod" === $ env ) { TaskBar :: switchStatus ( ( ( true === $ f -> taskbar_prod ) ? "on" : "off" ) ) ; } if ( property_exists ( $ f , "debug" ) && property_exists ( $ f -> debug , $ env ) && true === $ f -> debug -> $ env ) { Debug :: enabled ( ) ; } else { Debug :: disabled ( ) ; } } }
Enable framework components
@param string $env Current environment
@throws Server500
Enable framework components