Commit 650ad576 authored by Fabien Potencier's avatar Fabien Potencier

fixes lazy-loaded session (method name changed in Symfony)

parent 8c13bc70
...@@ -47,7 +47,7 @@ class SessionExtension implements ExtensionInterface ...@@ -47,7 +47,7 @@ class SessionExtension implements ExtensionInterface
$request->setSession($this->app['session']); $request->setSession($this->app['session']);
// starts the session if a session cookie already exists in the request... // starts the session if a session cookie already exists in the request...
if ($request->hasSession()) { if ($request->hasPreviousSession()) {
$request->getSession()->start(); $request->getSession()->start();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment