public function writeConfig($values = [], $overwrite = false)
    {
        if (!$overwrite) {
            $values = $values + (array) $this->getConfig();
        }

        $path = $this->getPath().'/theme.yaml';
        if (!File::exists($path)) {
            throw new ApplicationException('Path does not exist: '.$path);
        }

        $contents = Yaml::render($values);
        File::put($path, $contents);
        $this->configCache = $values;
    }
public function writeConfig($values = [], $overwrite = false)
    {
        if (!$overwrite) {
            $values = $values + (array) $this->getConfig();
        }

        $path = $this->getPath().'/theme.yaml';
        if (!File::exists($path)) {
            throw new ApplicationException('Path does not exist: '.$path);
        }

        $contents = Yaml::render($values);
        File::put($path, $contents);
        $this->configCache = $values;
    }
public function writeConfig ( $ values = [ ] , $ overwrite = false ) { if ( ! $ overwrite ) { $ values = $ values + ( array ) $ this -> getConfig ( ) ; } $ path = $ this -> getPath ( ) . '/theme.yaml' ; if ( ! File :: exists ( $ path ) ) { throw new ApplicationException ( 'Path does not exist: ' . $ path ) ; } $ contents = Yaml :: render ( $ values ) ; File :: put ( $ path , $ contents ) ; $ this -> configCache = $ values ; }
Writes to the theme.yaml file with the supplied array values.
@param array $values Data to write
@param array $overwrite If true, undefined values are removed.
@return void
Writes to the theme . yaml file with the supplied array values .