Commit 81338879 authored by Bas de Nooijer's avatar Bas de Nooijer

- added option forwarding to adapter instances

parent 8ad5ce2d
...@@ -229,6 +229,9 @@ class Solarium_Client extends Solarium_Configurable ...@@ -229,6 +229,9 @@ class Solarium_Client extends Solarium_Configurable
$this->_adapter = null; $this->_adapter = null;
return $this->_setOption('adapter', $adapter); return $this->_setOption('adapter', $adapter);
} else { } else {
// forward options
$adapter->setOptions($this->_options);
// overwrite existing adapter
$this->_adapter = $adapter; $this->_adapter = $adapter;
return $this; return $this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment