public function update($identifier, array $configuration)
    {
        $presets = $this->loadPresets();
        if (empty($presets[$identifier])) {
            throw new Exception('Could not find preset', 1410552339);
        }
        if (empty($configuration)) {
            throw new Exception('Empty configuration is not allowed', 1410595612);
        }
        $presets[$identifier] = $configuration;
        $this->savePresets($presets, 'Updates preset with identifier "' . $identifier . '"');
    }
public function update($identifier, array $configuration)
    {
        $presets = $this->loadPresets();
        if (empty($presets[$identifier])) {
            throw new Exception('Could not find preset', 1410552339);
        }
        if (empty($configuration)) {
            throw new Exception('Empty configuration is not allowed', 1410595612);
        }
        $presets[$identifier] = $configuration;
        $this->savePresets($presets, 'Updates preset with identifier "' . $identifier . '"');
    }
public function update ( $ identifier , array $ configuration ) { $ presets = $ this -> loadPresets ( ) ; if ( empty ( $ presets [ $ identifier ] ) ) { throw new Exception ( 'Could not find preset' , 1410552339 ) ; } if ( empty ( $ configuration ) ) { throw new Exception ( 'Empty configuration is not allowed' , 1410595612 ) ; } $ presets [ $ identifier ] = $ configuration ; $ this -> savePresets ( $ presets , 'Updates preset with identifier "' . $ identifier . '"' ) ; }
Updates a given preset.

@param string $identifier
@param array $configuration
@return void
@throws Exception
Updates a given preset .