We're currently using setOptions and setNamespaces to merge options and namespaces, and if you want to replace them you have to call $this->setOptions(null); and then $this->setOptions($options);. I'd like we to think how we can implement a more ParameterBag like API with replace method and rename setOptions to addOptions to explicitly tell our users they are doing a merge.
We're currently using
setOptionsandsetNamespacesto merge options and namespaces, and if you want to replace them you have to call$this->setOptions(null);and then$this->setOptions($options);. I'd like we to think how we can implement a more ParameterBag like API withreplacemethod and renamesetOptionstoaddOptionsto explicitly tell our users they are doing a merge.