Skip to content

Commit

Permalink
Move some articles from wrong sections
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaincombes authored and wouterj committed Jul 28, 2015
1 parent af85d52 commit 9e0f1b4
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ before, but also requires a thorough understanding of Symfony internals. Suppose
that your code throws specialized exceptions with a particular meaning to your
application domain.

:doc:`Writing your own event listener </cookbook/service_container/event_listener>`
:doc:`Writing your own event listener </cookbook/event_dispatcher/event_listener>`
for the ``kernel.exception`` event allows you to have a closer look at the exception
and take different actions depending on it. Those actions might include logging
the exception, redirecting the user to another page or rendering specialized
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cookbook/event_dispatcher/before_after_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Creating an Event Listener

Next, you'll need to create an event listener, which will hold the logic
that you want executed before your controllers. If you're not familiar with
event listeners, you can learn more about them at :doc:`/cookbook/service_container/event_listener`::
event listeners, you can learn more about them at :doc:`/cookbook/event_dispatcher/event_listener`::

// src/AppBundle/EventListener/TokenListener.php
namespace AppBundle\EventListener;
Expand Down
10 changes: 5 additions & 5 deletions cookbook/map.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* :doc:`/cookbook/configuration/using_parameters_in_dic`
* :doc:`/cookbook/configuration/front_controllers_and_kernel`
* :doc:`/cookbook/configuration/external_parameters`
* :doc:`/cookbook/configuration/pdo_session_storage`
* :doc:`/cookbook/doctrine/pdo_session_storage`
* :doc:`/cookbook/configuration/apache_router`
* :doc:`/cookbook/configuration/web_server_configuration`
* :doc:`/cookbook/configuration/configuration_organization`
Expand Down Expand Up @@ -78,7 +78,7 @@
* :doc:`/cookbook/doctrine/mapping_model_classes`
* :doc:`/cookbook/doctrine/registration_form`
* :doc:`/cookbook/doctrine/console`
* (configuration) :doc:`/cookbook/configuration/pdo_session_storage`
* (configuration) :doc:`/cookbook/doctrine/pdo_session_storage`

* :doc:`/cookbook/email/index`

Expand All @@ -94,7 +94,7 @@
* :doc:`/cookbook/event_dispatcher/before_after_filters`
* :doc:`/cookbook/event_dispatcher/class_extension`
* :doc:`/cookbook/event_dispatcher/method_behavior`
* (service container) :doc:`/cookbook/service_container/event_listener`
* (service container) :doc:`/cookbook/event_dispatcher/event_listener`

* :doc:`/cookbook/form/index`

Expand Down Expand Up @@ -179,7 +179,7 @@

* :doc:`/cookbook/service_container/index`

* :doc:`/cookbook/service_container/event_listener`
* :doc:`/cookbook/event_dispatcher/event_listener`
* :doc:`/cookbook/service_container/scopes`
* :doc:`/cookbook/service_container/compiler_passes`

Expand All @@ -189,7 +189,7 @@
* :doc:`/cookbook/session/locale_sticky_session`
* :doc:`/cookbook/session/sessions_directory`
* :doc:`/cookbook/session/php_bridge`
* (configuration) :doc:`/cookbook/configuration/pdo_session_storage`
* (configuration) :doc:`/cookbook/doctrine/pdo_session_storage`
* (configuration) :doc:`/cookbook/configuration/mongodb_session_storage`
* :doc:`/cookbook/session/avoid_session_start`

Expand Down
2 changes: 1 addition & 1 deletion cookbook/session/locale_sticky_session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Creating a LocaleListener
-------------------------

To simulate that the locale is stored in a session, you need to create and
register a :doc:`new event listener </cookbook/service_container/event_listener>`.
register a :doc:`new event listener </cookbook/event_dispatcher/event_listener>`.
The listener will look something like this. Typically, ``_locale`` is used
as a routing parameter to signify the locale, though it doesn't really matter
how you determine the desired locale from the request::
Expand Down
2 changes: 1 addition & 1 deletion cookbook/session/sessions_directory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ that your current sessions aren't lost when you clear Symfony's cache.
method of session management available within Symfony. See
:doc:`/components/http_foundation/session_configuration` for a
discussion of session save handlers. There are also entries in the cookbook
about storing sessions in a :doc:`relational database </cookbook/configuration/pdo_session_storage>`
about storing sessions in a :doc:`relational database </cookbook/doctrine/pdo_session_storage>`
or a :doc:`NoSQL database </cookbook/configuration/mongodb_session_storage>`.

To change the directory in which Symfony saves session data, you only need
Expand Down
2 changes: 2 additions & 0 deletions redirection_map
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@
/components/templating /components/templating/introduction
/cookbook/upgrading /cookbook/upgrade/index
/cookbook/security/voters_data_permission /cookbook/security/voters
/cookbook/configuration/pdo_session_storage /cookbook/doctrine/pdo_session_storage
/cookbook/service_container/event_listener /cookbook/event_dispatcher/event_listener
2 changes: 1 addition & 1 deletion reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ kernel.event_listener
This tag allows you to hook your own classes into Symfony's process at different
points.

For a full example of this listener, read the :doc:`/cookbook/service_container/event_listener`
For a full example of this listener, read the :doc:`/cookbook/event_dispatcher/event_listener`
cookbook entry.

For another practical example of a kernel listener, see the cookbook
Expand Down

0 comments on commit 9e0f1b4

Please sign in to comment.