public function removeConfig(ConfigInterface $config) {

        // If collection is in merge mode, don't permit removing configs (cannot unmerge)
        if ($this->merge) {
            throw new Exception("Cannot remove configs from merged collection.");
        }

        $this->configs->detach($config);

        return $this;
    }
public function removeConfig(ConfigInterface $config) {

        // If collection is in merge mode, don't permit removing configs (cannot unmerge)
        if ($this->merge) {
            throw new Exception("Cannot remove configs from merged collection.");
        }

        $this->configs->detach($config);

        return $this;
    }
public function removeConfig ( ConfigInterface $ config ) { // If collection is in merge mode, don't permit removing configs (cannot unmerge) if ( $ this -> merge ) { throw new Exception ( "Cannot remove configs from merged collection." ) ; } $ this -> configs -> detach ( $ config ) ; return $ this ; }
Remove ConfigInterface object from collection

@param \Kaecyra\AppCommon\ConfigInterface $config
@return ConfigCollection
Remove ConfigInterface object from collection