public function setConfiguration($config)
    {
        $this->config = $config;
        $encoded = json_encode($config, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        file_put_contents($this->appRoot . '/config.json', $encoded);
    }
public function setConfiguration($config)
    {
        $this->config = $config;
        $encoded = json_encode($config, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        file_put_contents($this->appRoot . '/config.json', $encoded);
    }
public function setConfiguration ( $ config ) { $ this -> config = $ config ; $ encoded = json_encode ( $ config , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ; file_put_contents ( $ this -> appRoot . '/config.json' , $ encoded ) ; }
Sets a new site configuration
@param $config
Sets a new site configuration