Skip to content

Commit

Permalink
bug #3869 Add a missing argument to the PdoSessionHandler (jakzal)
Browse files Browse the repository at this point in the history
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 0649c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/http_foundation/session_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0649c21

Please sign in to comment.