Skip to content

Commit

Permalink
Merge pull request #336 from cordoval/patch-6
Browse files Browse the repository at this point in the history
Update Resources/doc/3-listener-support.md
  • Loading branch information
lsmith77 committed Dec 7, 2012
2 parents 940e001 + fce36cd commit cf3e22b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Resources/doc/3-listener-support.md
@@ -1,6 +1,17 @@
Step 3: Listener support
========================

[Listeners](http://symfony.com/doc/master/cookbook/service_container/event_listener.html)
are a way to hook into the REST handling of
a request and in the preparation of a response to send back. The hooks in view relate
to getting things from the request (parameter fetcher listener), doing some processing
with the payload gotten from a request (body listener), formatting the response either
with a template engine like twig or to json format or xml via the serializer (format
listener), and finally also how to affect the response like in the previous listener
but in things relating to the view (view response listener).

With this in mind we now turn to explain each one of them.

All listeners except the ``mime_type`` one are disabled by default. You can
enable one or more of these listeners. For example, below you can see how to
enable all listeners:
Expand Down

0 comments on commit cf3e22b

Please sign in to comment.