File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ services:
32
32
- NEO4J_AUTH=neo4j/testtest
33
33
34
34
# advertise “neo4j:7687” instead of localhost
35
- - NEO4J_server_default__advertised__address=neo4j
36
- - NEO4J_server_bolt_advertised__address=neo4j :7687
35
+ - NEO4J_server_default__advertised__address=${DEFAULT_ADDRESS-localhost}
36
+ - NEO4J_server_bolt_advertised__address=${DEFAULT_ADDRESS-localhost} :7687
37
37
networks :
38
38
- neo4j-symfony
Original file line number Diff line number Diff line change @@ -48,19 +48,13 @@ public function __construct(
48
48
49
49
public function create (): SymfonyClient
50
50
{
51
- if (null !== $ this ->driverConfig ) {
52
- $ this ->builder = $ this ->builder ->withDefaultDriverConfiguration (
53
- $ this ->makeDriverConfig ($ this ->logLevel , $ this ->logger )
54
- );
55
- }
51
+ $ this ->builder = $ this ->builder ->withDefaultDriverConfiguration (
52
+ $ this ->makeDriverConfig ($ this ->logLevel , $ this ->logger )
53
+ );
56
54
57
- if (null !== $ this ->sessionConfig ) {
58
- $ this ->builder = $ this ->builder ->withDefaultSessionConfiguration ($ this ->makeSessionConfig ());
59
- }
55
+ $ this ->builder = $ this ->builder ->withDefaultSessionConfiguration ($ this ->makeSessionConfig ());
60
56
61
- if (null !== $ this ->transactionConfig ) {
62
- $ this ->builder = $ this ->builder ->withDefaultTransactionConfiguration ($ this ->makeTransactionConfig ());
63
- }
57
+ $ this ->builder = $ this ->builder ->withDefaultTransactionConfiguration ($ this ->makeTransactionConfig ());
64
58
65
59
foreach ($ this ->connections as $ connection ) {
66
60
$ this ->builder = $ this ->builder ->withDriver (
You can’t perform that action at this time.
0 commit comments