10000 Update pdo_session_storage.rts · symfony/symfony-docs@963429c · GitHub
[go: up one dir, main page]

Skip to content

Commit 963429c

Browse files
ulinskasjaviereguiluz
authored andcommitted
Update pdo_session_storage.rts
Argument `DSN` for `PdoSessionHandler` should be seperated by semicolon instead of comma. Source: `http://php.net/manual/en/pdo.connections.php`
1 parent 50aa694 commit 963429c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doctrine/pdo_session_storage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To use it, first register a new handler service:
2424
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler:
2525
public: false
2626
arguments:
27-
- 'mysql:dbname=mydatabase, host=myhost'
27+
- 'mysql:dbname=mydatabase; host=myhost; port=myport'
2828
- { db_username: myuser, db_password: mypassword }
2929
3030
.. code-block:: xml
@@ -56,7 +56,7 @@ To use it, first register a new handler service:
5656
5757
$storageDefinition = $container->register(PdoSessionHandler::class)
5858
->setArguments(array(
59-
'mysql:dbname=mydatabase, host=myhost',
59+
'mysql:dbname=mydatabase; host=myhost; port=myport',
6060
array('db_username' => 'myuser', 'db_password' => 'mypassword'),
6161
))
6262
;
@@ -119,7 +119,7 @@ a second array argument to ``PdoSessionHandler``:
119119
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler:
120120
public: false
121121
arguments:
122-
- 'mysql:dbname=mydatabase, host=myhost'
122+
- 'mysql:dbname=mydatabase; host=myhost; port=myport'
123123
- { db_table: 'sessions', db_username: 'myuser', db_password: 'mypassword' }
124124
125125
.. code-block:: xml
@@ -152,7 +152,7 @@ a second array argument to ``PdoSessionHandler``:
152152
153153
$container->register(PdoSessionHandler::class)
154154
->setArguments(array(
155-
'mysql:dbname=mydatabase, host=myhost',
155+
'mysql:dbname=mydatabase; host=myhost; port=myport',
156156
array('db_table' => 'sessions', 'db_username' => 'myuser', 'db_password' => 'mypassword')
157157
))
158158
;

0 commit comments

Comments
 (0)
0