Skip to content

Commit 9c6f7a2

Browse files
authored
Merge pull request #27 from neo4j-contrib/patch-3
FIxed config bug with multiple connections and clinets
2 parents 63349c3 + 7b14f36 commit 9c6f7a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
1010

1111
### Fixed
1212

13-
- Typo in configuration "schema" => "scheme".
13+
- Typo in configuration "schema" => "scheme".
14+
- Bug where clients accidentally could share connections.
1415

1516
## 0.2.0
1617

DependencyInjection/Neo4jExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ private function handleClients(array &$config, ContainerBuilder $container): arr
8383

8484
$serviceIds = [];
8585
foreach ($config['clients'] as $name => $data) {
86+
$connections = [];
8687
$serviceIds[$name] = $serviceId = sprintf('neo4j.client.%s', $name);
8788
foreach ($data['connections'] as $connectionName) {
8889
if (empty($config['connections'][$connectionName])) {

0 commit comments

Comments
 (0)