Skip to content

Commit

Permalink
bug #3473 Update proxy_examples.rst (AZielinski)
Browse files Browse the repository at this point in the history
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 8155e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/session/proxy_examples.rst
Original file line number Diff line number Diff line change
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 8155e4c

Please sign in to comment.