Skip to content

Commit 8155e4c

Browse files
committed
bug symfony#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 symfony#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
2 parents 579215f + c761415 commit 8155e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/session/proxy_examples.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ is injected into the proxy and registered with the session storage driver::
1010

1111
use Symfony\Component\HttpFoundation\Session\Session;
1212
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
13-
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionStorage;
13+
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
1414

15-
$proxy = new YourProxy(new PdoSessionStorage());
16-
$session = new Session(new NativeSessionStorage($proxy));
15+
$proxy = new YourProxy(new PdoSessionHandler());
16+
$session = new Session(new NativeSessionStorage(array(), $proxy));
1717

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

0 commit comments

Comments
 (0)