Skip to content

Commit c761415

Browse files
Adam Zielinskiweaverryan
Adam Zielinski
authored andcommitted
Update proxy_examples.rst
Code sample modified to reflect the actual usage
1 parent 579215f commit c761415

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)