Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update Resources/doc/3-listener-support.md #336

Merged
merged 2 commits into from

2 participants

@cordoval

No description provided.

Resources/doc/3-listener-support.md
@@ -1,6 +1,16 @@
Step 3: Listener support
========================
+There are at least 4 listeners. Listeners 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 expound each one of them.
@lsmith77 Owner
lsmith77 added a note

s/expound/explain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Resources/doc/3-listener-support.md
@@ -1,6 +1,16 @@
Step 3: Listener support
========================
+There are at least 4 listeners. Listeners are a way to hook into the REST handling of
@lsmith77 Owner
lsmith77 added a note

i think "There are at least 4 listeners." can be removed. maybe you can also link to the listener docs on symfony.com?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@lsmith77 lsmith77 merged commit cf3e22b into FriendsOfSymfony:master

1 check passed

Details default The Travis build passed
@blongden blongden referenced this pull request from a commit
@jmikola jmikola Do not clobber existing client definitions (closes #336 and #324)
While we could have used an abstract definition, its ID would likely conflict with the alias we set for the default client. Remove the abstract definition altogether and simply construct new definitions for each client. This resolves the previous issue where multiple clients would overwrite the constructor arguments of the previous definition.
74d993b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 5, 2012
  1. @cordoval
Commits on Dec 7, 2012
  1. @cordoval

    address comments

    cordoval authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 Resources/doc/3-listener-support.md
View
11 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:
Something went wrong with that request. Please try again.