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
54aa24f1
Commit
54aa24f1
authored
Jun 13, 2012
by
Adrien BRAULT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] Fix code-blocks, links, identation
parent
aee53c94
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
12 deletions
+20
-12
doc/cookbook/session_storage.rst
doc/cookbook/session_storage.rst
+7
-3
doc/providers/doctrine.rst
doc/providers/doctrine.rst
+3
-3
doc/providers/monolog.rst
doc/providers/monolog.rst
+1
-1
doc/providers/session.rst
doc/providers/session.rst
+6
-3
doc/providers/swiftmailer.rst
doc/providers/swiftmailer.rst
+1
-1
doc/services.rst
doc/services.rst
+2
-1
No files found.
doc/cookbook/session_storage.rst
View file @
54aa24f1
...
@@ -7,9 +7,13 @@ medium to large websites use a database to store sessions instead of files,
...
@@ -7,9 +7,13 @@ medium to large websites use a database to store sessions instead of files,
because databases are easier to use and scale in a multi-webserver
because databases are easier to use and scale in a multi-webserver
environment.
environment.
Symfony2's ``NativeSessionStorage`` has multiple storage handlers and one of
Symfony2's `NativeSessionStorage
them uses PDO to store sessions, ``PdoSessionHandler``. To use it, replace the
<http://api.symfony.com/master/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.html>`_
``session.storage.handler`` service in your application like explained below.
has multiple storage handlers and one of them uses PDO to store sessions,
`PdoSessionHandler
<http://api.symfony.com/master/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.html>`_.
To use it, replace the ``session.storage.handler`` service in your application
like explained below.
Example
Example
-------
-------
...
...
doc/providers/doctrine.rst
View file @
54aa24f1
doc/providers/monolog.rst
View file @
54aa24f1
...
@@ -59,7 +59,7 @@ Usage
...
@@ -59,7 +59,7 @@ Usage
The MonologServiceProvider provides a ``monolog`` service. You can use it to
The MonologServiceProvider provides a ``monolog`` service. You can use it to
add log entries for any logging level through ``addDebug()``, ``addInfo()``,
add log entries for any logging level through ``addDebug()``, ``addInfo()``,
``addWarning()`` and ``addError()``:
``addWarning()`` and ``addError()``:
:
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Response;
...
...
doc/providers/session.rst
View file @
54aa24f1
...
@@ -14,7 +14,9 @@ Parameters
...
@@ -14,7 +14,9 @@ Parameters
* **session.storage.options**: An array of options that is passed to the
* **session.storage.options**: An array of options that is passed to the
constructor of the ``session.storage`` service.
constructor of the ``session.storage`` service.
In case of the default ``NativeSessionStorage``, the possible options are:
In case of the default `NativeSessionStorage
<http://api.symfony.com/master/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.html>`_,
the possible options are:
* **name**: The cookie name (_SESS by default)
* **name**: The cookie name (_SESS by default)
* **id**: The session id (null by default)
* **id**: The session id (null by default)
...
@@ -40,8 +42,9 @@ Services
...
@@ -40,8 +42,9 @@ Services
data.
data.
* **session.storage.handler**: A service that is used by the
* **session.storage.handler**: A service that is used by the
``session.storage`` for data access. Defaults to a
``session.storage`` for data access. Defaults to a `FileSessionHandler
``FileSessionHandler`` storage handler.
<http://api.symfony.com/master/Symfony/Component/HttpFoundation/Session/Storage/Handler/FileSessionHandler.html>`_
storage handler.
Registering
Registering
-----------
-----------
...
...
doc/providers/swiftmailer.rst
View file @
54aa24f1
...
@@ -74,7 +74,7 @@ Registering
...
@@ -74,7 +74,7 @@ Registering
Usage
Usage
-----
-----
The Swiftmailer provider provides a ``mailer`` service:
The Swiftmailer provider provides a ``mailer`` service:
:
$app->post('/feedback', function () use ($app) {
$app->post('/feedback', function () use ($app) {
$request = $app['request'];
$request = $app['request'];
...
...
doc/services.rst
View file @
54aa24f1
...
@@ -216,7 +216,8 @@ don't want to mess with most of them.
...
@@ -216,7 +216,8 @@ don't want to mess with most of them.
`unset($app['exception_handler'])`.
`unset($app['exception_handler'])`.
* **logger**: A
* **logger**: A
`http://api.symfony.com/master/Symfony/Component/HttpKernel/Log/LoggerInterface.html`_
`LoggerInterface
<http://api.symfony.com/master/Symfony/Component/HttpKernel/Log/LoggerInterface.html>`_
instance. By default, logging is disabled as the value is set to `null`.
instance. By default, logging is disabled as the value is set to `null`.
When the Symfony2 Monolog bridge is installed, Monolog is automatically used
When the Symfony2 Monolog bridge is installed, Monolog is automatically used
as the default logger.
as the default logger.
...
...
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