Commit a3f570d4 authored by Grégoire Pineau's avatar Grégoire Pineau

[Doc] Changed ArraySessionStorage to FilesystemSessionStorage for functional testing

parent be168e3b
...@@ -104,18 +104,18 @@ executed before every test. ...@@ -104,18 +104,18 @@ executed before every test.
.. tip:: .. tip::
If your application use sessions, you have to use ``ArraySessionStorage`` If your application use sessions, you have to use ``FilesystemSessionStorage``
to store sessions:: to store sessions::
// ... // ...
use Symfony\Component\HttpFoundation\SessionStorage\ArraySessionStorage; use Symfony\Component\HttpFoundation\SessionStorage\FilesystemSessionStorage;
// ... // ...
public function createApplication() public function createApplication()
{ {
// ... // ...
$this->app['session.storage'] = $this->app->share(function() { $this->app['session.storage'] = $this->app->share(function() {
return new ArraySessionStorage(); return new FilesystemSessionStorage(sys_get_temp_dir());
}); });
// ... // ...
} }
......
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