Skip to content
This repository
Browse code

Merge pull request #336 from cordoval/patch-6

Update Resources/doc/3-listener-support.md
  • Loading branch information...
commit cf3e22ba2d6c1e8e7f40e48c4720f8a63a651f1d 2 parents 940e001 + fce36cd
Lukas Kahwe Smith authored December 07, 2012

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  Resources/doc/3-listener-support.md
11  Resources/doc/3-listener-support.md
Source Rendered
... ...
@@ -1,6 +1,17 @@
1 1
 Step 3: Listener support
2 2
 ========================
3 3
 
  4
+[Listeners](http://symfony.com/doc/master/cookbook/service_container/event_listener.html)
  5
+are a way to hook into the REST handling of
  6
+a request and in the preparation of a response to send back. The hooks in view relate
  7
+to getting things from the request (parameter fetcher listener), doing some processing
  8
+with the payload gotten from a request (body listener), formatting the response either
  9
+with a template engine like twig or to json format or xml via the serializer (format
  10
+listener), and finally also how to affect the response like in the previous listener
  11
+but in things relating to the view (view response listener).
  12
+
  13
+With this in mind we now turn to explain each one of them.
  14
+
4 15
 All listeners except the ``mime_type`` one are disabled by default.  You can
5 16
 enable one or more of these listeners.  For example, below you can see how to
6 17
 enable all listeners:

0 notes on commit cf3e22b

Please sign in to comment.
Something went wrong with that request. Please try again.