Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added the full XML config
  • Loading branch information
javiereguiluz committed May 21, 2016
commit b0be22f0535c431fb166c52b6afeb206a7332641
25 changes: 19 additions & 6 deletions cookbook/session/proxy_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ Then, define a new service related to the custom session handler:
.. code-block:: xml

<!-- app/config/services.xml -->
<services>
<service id="app.session_handler" class="AppBundle\Session\CustomSessionHandler" />
</services>
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="app.session_handler" class="AppBundle\Session\CustomSessionHandler" />
</services>
</container>

.. code-block:: php

Expand All @@ -49,9 +56,15 @@ Symfony to use your own session handler instead of the default one:
.. code-block:: xml

<!-- app/config/config.xml -->
<framework:config>
<framework:session handler-id="app.session_handler" ... />
</framework:config>
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd">
<framework:config>
<framework:session handler-id="app.session_handler" ... />
</framework:config>
</container>

.. code-block:: php

Expand Down