From 44498f285b1dd46bab4abcba5555813d9c7b21c7 Mon Sep 17 00:00:00 2001 From: Adam Zielinski Date: Mon, 13 Jan 2014 14:35:36 +0100 Subject: [PATCH] Update proxy_examples.rst Code sample modified to reflect the actual usage --- cookbook/session/proxy_examples.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/session/proxy_examples.rst b/cookbook/session/proxy_examples.rst index b2343ae0e04..47020a39359 100644 --- a/cookbook/session/proxy_examples.rst +++ b/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.