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

Remove int cast that prevents setting redis database from env var #153

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private function addRedisNode()
->scalarNode('port')->defaultValue('%doctrine_cache.redis.port%')->end()
->scalarNode('password')->defaultNull()->end()
->scalarNode('timeout')->defaultNull()->end()
->scalarNode('database')->defaultNull()->end()
->integerNode('database')->defaultNull()->end()
->booleanNode('persistent')->defaultFalse()->end()
->end()
;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Definition/RedisDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function getConnectionReference($name, array $config, ContainerBuilder $
}

if (isset($config['database'])) {
$database = (int) $config['database'];
$database = $config['database'];
$connDef->addMethodCall('select', array($database));
}

Expand Down