Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
a3f570d4
Commit
a3f570d4
authored
Sep 26, 2011
by
Grégoire Pineau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] Changed ArraySessionStorage to FilesystemSessionStorage for functional testing
parent
be168e3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/testing.rst
doc/testing.rst
+3
-3
No files found.
doc/testing.rst
View file @
a3f570d4
...
@@ -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 ``
Array
SessionStorage``
If your application use sessions, you have to use ``
Filesystem
SessionStorage``
to store sessions::
to store sessions::
// ...
// ...
use Symfony\Component\HttpFoundation\SessionStorage\
Array
SessionStorage;
use Symfony\Component\HttpFoundation\SessionStorage\
Filesystem
SessionStorage;
// ...
// ...
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()
);
});
});
// ...
// ...
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment