Skip to content

Commit

Permalink
If servers are passed they shouod overwrite defaults
Browse files Browse the repository at this point in the history
This is one of the rare cases where merging defaults isn't desirable
  • Loading branch information
AD7six committed Mar 29, 2014
1 parent 75b0f45 commit f58b767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cache/Engine/MemcachedEngine.php
Expand Up @@ -112,6 +112,10 @@ public function init($config = []) {

parent::init($config);

if (isset($config['servers'])) {
$this->config('servers', $config['servers'], false);
}

if (!is_array($this->_config['servers'])) {
$this->_config['servers'] = [$this->_config['servers']];
}
Expand Down

0 comments on commit f58b767

Please sign in to comment.