Permalink
Browse files

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.
  • Loading branch information...
weaverryan committed May 29, 2014
2 parents 50672f7 + fff25ce commit 0649c212b3ea28c8890914912ffb2503bfdfdad0
Showing with 2 additions and 1 deletion.
  1. +2 −1 components/http_foundation/session_configuration.rst
@@ -83,7 +83,8 @@ Example usage::
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
$storage = new NativeSessionStorage(array(), new PdoSessionHandler());
$pdo = new \PDO('mysql:dbname=testdb;host=127.0.0.1');
$storage = new NativeSessionStorage(array(), new PdoSessionHandler($pdo));
$session = new Session($storage);
Configuring PHP Sessions

0 comments on commit 0649c21

Please sign in to comment.