Permalink
Browse files

bug #3473 Update proxy_examples.rst (AZielinski)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3473).

Discussion
----------

Update proxy_examples.rst

Code sample modified to reflect the actual usage

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?    | no
| Applies to     | 2.1+
| Fixed tickets | none

Commits
-------

44498f2 Update proxy_examples.rst
  • Loading branch information...
weaverryan committed Feb 1, 2014
2 parents 579215f + c761415 commit 8155e4cab70e481962a4775274a4412a4465ecdc
Showing with 3 additions and 3 deletions.
  1. +3 −3 cookbook/session/proxy_examples.rst
@@ -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.

0 comments on commit 8155e4c

Please sign in to comment.