Skip to content

Commit c0d1ed1

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: [#6191] fix build Document the invalidate_session option Docs do not match functionality fix MongoDB shell syntax highlighting Added the missing namespace in example of a subscriber class Typofix for "Defining and Processing Configuration Values"
2 parents 4cf2d0b + c0d2bac commit c0d1ed1

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

components/config/definition.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Or the following XML configuration:
231231

232232
.. code-block:: xml
233233
234-
<driver>msyql</driver>
234+
<driver>mysql</driver>
235235
<driver>sqlite</driver>
236236
237237
The processed configuration is::
@@ -334,7 +334,7 @@ In order to maintain the array keys use the ``useAttributeAsKey()`` method::
334334

335335
The argument of this method (``name`` in the example above) defines the name of
336336
the attribute added to each XML node to differentiate them. Now you can use the
337-
same YAML configuration showed before or the following XML configuration:
337+
same YAML configuration shown before or the following XML configuration:
338338

339339
.. code-block:: xml
340340

components/event_dispatcher/introduction.rst

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ subscribes to the ``kernel.response`` and ``store.order`` events::
393393

394394
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
395395
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
396+
use Acme\StoreBundle\Event\FilterOrderEvent;
396397

397398
class StoreSubscriber implements EventSubscriberInterface
398399
{

cookbook/bundles/configuration.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ The ``config:dump-reference`` command dumps the default configuration of a
294294
bundle in the console using the Yaml format.
295295

296296
As long as your bundle's configuration is located in the standard location
297-
(``YourBundle\DependencyInjection\Configuration``) and does not require
298-
arguments to be passed to the constructor it will work automatically. If you
297+
(``YourBundle\DependencyInjection\Configuration``) and does not have
298+
a constructor it will work automatically. If you
299299
have something different, your ``Extension`` class must override the
300300
:method:`Extension::getConfiguration() <Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension::getConfiguration>`
301301
method and return an instance of your ``Configuration``.

cookbook/doctrine/mongodb_session_storage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Because MongoDB uses dynamic collection schemas, you do not need to do anything
162162
session collection. However, you may want to add an index to improve garbage collection performance.
163163
From the `MongoDB shell`_:
164164

165-
.. code-block:: text
165+
.. code-block:: javascript
166166
167167
use session_db
168168
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )

reference/configuration/security.rst

+16
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,22 @@ Redirecting after Login
325325

326326
.. _reference-security-pbkdf2:
327327

328+
Logout Configuration
329+
--------------------
330+
331+
invalidate_session
332+
~~~~~~~~~~~~~~~~~~
333+
334+
**type**: ``boolean`` **default**: ``true``
335+
336+
By default, when users log out from any firewall, their sessions are invalidated.
337+
This means that logging out from one firewall automatically logs them out from
338+
all the other firewalls.
339+
340+
The ``invalidate_session`` option allows to redefine this behavior. Set this
341+
option to ``false`` in every firewall and the user will only be logged out from
342+
the current firewall and not the other ones.
343+
328344
Using the PBKDF2 Encoder: Security and Speed
329345
--------------------------------------------
330346

0 commit comments

Comments
 (0)