public function apply(): bool
    {
        $path = FEnv::get("framework.root")."apps/".$this->appname."/config.json";
        if (false === JsonListener::exists($path)) {
            AppConfig::createHimSelf($this->appname);
        }
       
        $file = JsonListener::open($path);
        $file->locale_enabled = $this->enabled;
        $file->locale_values = $this->values;
        $file->trans_type = $this->transtype;
        $file->prefer_locale = $this->prefer;
        return (JsonListener::put($path, json_encode($file, JSON_PRETTY_PRINT)));
    }
public function apply(): bool
    {
        $path = FEnv::get("framework.root")."apps/".$this->appname."/config.json";
        if (false === JsonListener::exists($path)) {
            AppConfig::createHimSelf($this->appname);
        }
       
        $file = JsonListener::open($path);
        $file->locale_enabled = $this->enabled;
        $file->locale_values = $this->values;
        $file->trans_type = $this->transtype;
        $file->prefer_locale = $this->prefer;
        return (JsonListener::put($path, json_encode($file, JSON_PRETTY_PRINT)));
    }
public function apply ( ) : bool { $ path = FEnv :: get ( "framework.root" ) . "apps/" . $ this -> appname . "/config.json" ; if ( false === JsonListener :: exists ( $ path ) ) { AppConfig :: createHimSelf ( $ this -> appname ) ; } $ file = JsonListener :: open ( $ path ) ; $ file -> locale_enabled = $ this -> enabled ; $ file -> locale_values = $ this -> values ; $ file -> trans_type = $ this -> transtype ; $ file -> prefer_locale = $ this -> prefer ; return ( JsonListener :: put ( $ path , json_encode ( $ file , JSON_PRETTY_PRINT ) ) ) ; }
Apply object persist
@return bool
@throws Server500
Apply object persist