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

Commit

Permalink
Merge pull request #27 from stof/default_ports
Browse files Browse the repository at this point in the history
Fix the default ports in the SymfonyBridge layer
  • Loading branch information
beberlei committed Nov 28, 2014
2 parents 5c5ee81 + c9c69b0 commit e4b6f81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DependencyInjection/SymfonyBridgeAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ public function loadCacheDriver($cacheName, $objectManagerName, array $cacheDriv
}

if (in_array($type, array('memcache', 'memcached'))) {
$host = !empty($host) ? $host : 'localhost';
$config[$type]['servers'][$host] = array(
'host' => $host,
'port' => $port,
'port' => !empty($port) ? $port : 11211,
);
}

if ($type === 'redis') {
$config[$type] = array(
'host' => $host,
'port' => $port,
'host' => !empty($host) ? $host : 'localhost',
'port' => !empty($port) ? $port : 6379,
'password' => null,
'database' => null
);
Expand Down

0 comments on commit e4b6f81

Please sign in to comment.