8000 bug #3869 Add a missing argument to the PdoSessionHandler (jakzal) · symfony/symfony-docs@0649c21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0649c21

Browse files
committed
bug #3869 Add a missing argument to the PdoSessionHandler (jakzal)
This PR was merged into the 2.3 branch. Discussion ---------- Add a missing argument to the PdoSessionHandler | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #3868 Commits ------- fff25ce Add a missing argument to the PdoSessionHandler.
2 parents 50672f7 + fff25ce commit 0649c21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/http_foundation/session_configuration.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ Example usage::
8383
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
8484
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
8585

86-
$storage = new NativeSessionStorage(array(), new PdoSessionHandler());
86+
$pdo = new \PDO('mysql:dbname=testdb;host=127.0.0.1');
87+
$storage = new NativeSessionStorage(array(), new PdoSessionHandler($pdo));
8788
$session = new Session($storage);
8889

8990
Configuring PHP Sessions

0 commit comments

Comments
 (0)
0