Skip to content

Commit

Permalink
Update proxy_examples.rst
Browse files Browse the repository at this point in the history
Code sample modified to reflect the actual usage
  • Loading branch information
Adam Zielinski committed Jan 13, 2014
1 parent bede4c3 commit 44498f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/session/proxy_examples.rst
Expand Up @@ -10,10 +10,10 @@ is injected into the proxy and registered with the session storage driver::

use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionStorage;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;

$proxy = new YourProxy(new PdoSessionStorage());
$session = new Session(new NativeSessionStorage($proxy));
$proxy = new YourProxy(new PdoSessionHandler());
$session = new Session(new NativeSessionStorage(array(), $proxy));

Below, you'll learn two real examples that can be used for ``YourProxy``:
encryption of session data and readonly guest session.
Expand Down

0 comments on commit 44498f2

Please sign in to comment.