Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1c80b8

Browse files
committed
Add the examples for XML and PHP config
1 parent 3cd2601 commit f1c80b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

session/database.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ First, define a Symfony service for the connection to the Redis server:
5151
# - auth:
5252
# - '%env(REDIS_PASSWORD)%'
5353
54-
# uncomment the following if your Redis server requires user and password (When user is not default)
54+
# uncomment the following if your Redis server requires a user and a password (when user is not default)
5555
# - auth:
5656
# - ['%env(REDIS_USER)%','%env(REDIS_PASSWORD)%']
5757
@@ -74,6 +74,12 @@ First, define a Symfony service for the connection to the Redis server:
7474
<call method="auth">
7575
<argument>%env(REDIS_PASSWORD)%</argument>
7676
</call> -->
77+
78+
<!-- uncomment the following if your Redis server requires a user and a password (when user is not default):
79+
<call method="auth">
80+
<argument>%env(REDIS_USER)%</argument>
81+
<argument>%env(REDIS_PASSWORD)%</argument>
82+
</call> -->
7783
</service>
7884
</services>
7985
</container>
@@ -87,6 +93,8 @@ First, define a Symfony service for the connection to the Redis server:
8793
->addMethodCall('connect', ['%env(REDIS_HOST)%', '%env(int:REDIS_PORT)%'])
8894
// uncomment the following if your Redis server requires a password:
8995
// ->addMethodCall('auth', ['%env(REDIS_PASSWORD)%'])
96+
// uncomment the following if your Redis server requires a user and a password (when user is not default):
97+
// ->addMethodCall('auth', ['%env(REDIS_USER)%', '%env(REDIS_PASSWORD)%'])
9098
;
9199
92100
Now pass this ``\Redis`` connection as an argument of the service associated to the

0 commit comments

Comments
 (0)