Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #62 from Arthurhall/master
Browse files Browse the repository at this point in the history
Checking host before memcached addServer
  • Loading branch information
mevdschee committed Dec 15, 2015
2 parents 12c013b + 68b9ef8 commit b58ce83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DependencyInjection/LswMemcacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ private function newMemcacheClient($name, array $config, ContainerBuilder $conta
$s['timeout'],
$s['retry_interval']
);
$memcache->addMethodCall('addServer', $server);
if ($s['host']) {
$memcache->addMethodCall('addServer', $server);
}
}

$memcache->addArgument($config['options']);
Expand Down

0 comments on commit b58ce83

Please sign in to comment.