final protected function enabledAppProcess()
    {
        $appname = $this->params['capp'];
        Output::displayAsGreen(
            "Processing to enabled app : $appname  will be enabled \n",
            "none",
            false
        );
        sleep(1);
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));

        foreach ($file as $val) {
            if ($val->name == $this->params['capp']) {
                $val->update = new \DateTime();
                $val->enabled = "yes";
            }
        }

        $file = json_encode($file, JSON_PRETTY_PRINT);
        file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), $file);
        Output::displayAsGreen("Now, the ".$this->params['capp']." is enabled", "none", false);
    }
final protected function enabledAppProcess()
    {
        $appname = $this->params['capp'];
        Output::displayAsGreen(
            "Processing to enabled app : $appname  will be enabled \n",
            "none",
            false
        );
        sleep(1);
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));

        foreach ($file as $val) {
            if ($val->name == $this->params['capp']) {
                $val->update = new \DateTime();
                $val->enabled = "yes";
            }
        }

        $file = json_encode($file, JSON_PRETTY_PRINT);
        file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), $file);
        Output::displayAsGreen("Now, the ".$this->params['capp']." is enabled", "none", false);
    }
final protected function enabledAppProcess ( ) { $ appname = $ this -> params [ 'capp' ] ; Output :: displayAsGreen ( "Processing to enabled app : $appname  will be enabled \n" , "none" , false ) ; sleep ( 1 ) ; $ file = json_decode ( file_get_contents ( FEnvFcm :: get ( "framework.config.core.apps.file" ) ) ) ; foreach ( $ file as $ val ) { if ( $ val -> name == $ this -> params [ 'capp' ] ) { $ val -> update = new \ DateTime ( ) ; $ val -> enabled = "yes" ; } } $ file = json_encode ( $ file , JSON_PRETTY_PRINT ) ; file_put_contents ( FEnvFcm :: get ( "framework.config.core.apps.file" ) , $ file ) ; Output :: displayAsGreen ( "Now, the " . $ this -> params [ 'capp' ] . " is enabled" , "none" , false ) ; }
Processing to enabled an app
@throws Server500
Processing to enabled an app