final protected function showAppsRegister()
    {
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        $i = 1;
        if (count($file) == 0) {
            Output::outputAsError("Ops! You have no app registered. Please create an app with app");
        }
        $str = "";
        foreach ($file as $val) {
            $str .= $i.") ".$val->name.(($val->enabled == "yes")? " : Enabled" : "Disabled")."\n";
            array_push($this->params['applist'], $val->name);
            $i++;
        }

        Output::outputAsNormal("Your apps \n------------\n".$str, "none");
        return (false);
    }
final protected function showAppsRegister()
    {
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        $i = 1;
        if (count($file) == 0) {
            Output::outputAsError("Ops! You have no app registered. Please create an app with app");
        }
        $str = "";
        foreach ($file as $val) {
            $str .= $i.") ".$val->name.(($val->enabled == "yes")? " : Enabled" : "Disabled")."\n";
            array_push($this->params['applist'], $val->name);
            $i++;
        }

        Output::outputAsNormal("Your apps \n------------\n".$str, "none");
        return (false);
    }
final protected function showAppsRegister ( ) { $ file = json_decode ( file_get_contents ( FEnvFcm :: get ( "framework.config.core.apps.file" ) ) ) ; $ i = 1 ; if ( count ( $ file ) == 0 ) { Output :: outputAsError ( "Ops! You have no app registered. Please create an app with app" ) ; } $ str = "" ; foreach ( $ file as $ val ) { $ str .= $ i . ") " . $ val -> name . ( ( $ val -> enabled == "yes" ) ? " : Enabled" : "Disabled" ) . "\n" ; array_push ( $ this -> params [ 'applist' ] , $ val -> name ) ; $ i ++ ; } Output :: outputAsNormal ( "Your apps \n------------\n" . $ str , "none" ) ; return ( false ) ; }
Show all app in apps.json
@return bool
@throws Server500
Show all app in apps . json