Skip to content

Commit d061f08

Browse files
authored
Fixed typo in config. "schema" => "scheme" (#23)
* Fixed typo in config. "schema" => "scheme" This will fix #17 * cs
1 parent 11afbff commit d061f08

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

Changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5-
## UNRELEASED
5+
## 0.3.0 (Unreleased)
6+
7+
### Fixed
8+
9+
- Typo in configuration "schema" => "scheme".
610

711
## 0.2.0
812

Collector/QueryLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function statisticsToArray(StatementStatisticsInterface $statementStatis
138138
'constraints_added' => $statementStatistics->constraintsAdded(),
139139
'constraints_removed' => $statementStatistics->constraintsRemoved(),
140140
];
141-
141+
142142
return $data;
143143
}
144144
}

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getConfigTreeBuilder()
8585
->prototype('array')
8686
->addDefaultsIfNotSet()
8787
->children()
88-
->enumNode('schema')->values(['http', 'bolt'])->defaultValue('bolt')->end()
88+
->enumNode('scheme')->values(['http', 'bolt'])->defaultValue('bolt')->end()
8989
->scalarNode('host')->defaultValue('localhost')->end()
9090
->integerNode('port')->end()
9191
->scalarNode('username')->defaultValue('neo4j')->end()

DependencyInjection/Neo4jExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private function getUrl(array $config): string
184184
{
185185
return sprintf(
186186
'%s://%s:%s@%s:%d',
187-
$config['schema'],
187+
$config['scheme'],
188188
$config['username'],
189189
$config['password'],
190190
$config['host'],
@@ -205,7 +205,7 @@ private function getPort(array $config)
205205
return $config['port'];
206206
}
207207

208-
return 'http' == $config['schema'] ? HttpDriver::DEFAULT_HTTP_PORT : BoltDriver::DEFAULT_TCP_PORT;
208+
return 'http' == $config['scheme'] ? HttpDriver::DEFAULT_HTTP_PORT : BoltDriver::DEFAULT_TCP_PORT;
209209
}
210210

211211
/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ neo4j:
6767
enabled: true
6868
connections:
6969
default:
70-
schema: bolt # default (must be either "http" or "bolt")
70+
scheme: bolt # default (must be either "http" or "bolt")
7171
host: localhost # default
7272
port: 7474 # optional, will be set to the proper driver's default port if not provided
7373
username: neo4j # default

0 commit comments

Comments
 (0)