@@ -168,8 +168,6 @@ the important ones for configuring the view:
168168* ``setResponse(Response $response) `` - The response instance that is populated
169169 by the ``ViewHandler ``.
170170
171- See `this example code `_ for more details.
172-
173171Forms and Views
174172---------------
175173
@@ -310,7 +308,6 @@ default of ``twig``:
310308
311309.. code-block :: yaml
312310
313- # app/config/config.yml
314311 fos_rest :
315312 view :
316313 formats :
@@ -323,8 +320,6 @@ default of ``twig``:
323320 failed_validation : HTTP_BAD_REQUEST
324321 default_engine : twig
325322
326- See `this example configuration `_ for more details.
327-
328323 Custom handler
329324--------------
330325
@@ -348,12 +343,7 @@ Note there are several public methods on the ``ViewHandler`` which can be helpfu
348343* ``createRedirectResponse() ``
349344* ``renderTemplate() ``
350345
351- There is an example inside LiipHelloBundle to show how to register a custom handler
352- (for an RSS feed):
353- https://github.com/liip/LiipHelloBundle/blob/master/View/RSSViewHandler.php
354- https://github.com/liip/LiipHelloBundle/blob/master/Resources/config/config.yml
355-
356- There is another example in ``Resources\doc\examples ``:
346+ There is an example for how to register a custom handler (for an RSS feed) in ``Resources\doc\examples ``:
357347https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/examples/RssHandler.php
358348
359349Here is an example using a closure registered inside a Controller action:
@@ -418,7 +408,6 @@ Simply add the following to your configuration
418408
419409.. code-block :: yaml
420410
421- # app/config/config.yml
422411 fos_rest :
423412 view :
424413 jsonp_handler : ~
@@ -429,7 +418,6 @@ is valid or not.
429418
430419.. code-block :: yaml
431420
432- # app/config/config.yml
433421 fos_rest :
434422 view :
435423 jsonp_handler :
@@ -439,7 +427,6 @@ Finally the filter can also be disabled by setting it to false.
439427
440428.. code-block :: yaml
441429
442- # app/config/config.yml
443430 fos_rest :
444431 view :
445432 jsonp_handler :
@@ -469,8 +456,6 @@ That was it!
469456.. _`Symfony Serializer Component` : http://symfony.com/doc/current/components/serializer.html
470457.. _`serializer` : https://github.com/schmittjoh/serializer
471458.. _`JMSSerializerBundle` : https://github.com/schmittjoh/JMSSerializerBundle
472- .. _`this example code` : https://github.com/liip/LiipHelloBundle/blob/master/Controller/HelloController.php
473- .. _`this example configuration` : https://github.com/liip-forks/symfony-standard/blob/techtalk/app/config/config.yml
474459.. _`CVE-2014-4671` : http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-4671
475460.. _`Abusing JSONP with Rosetta Flash` : http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
476461.. _`NelmioSecurityBundle` : https://github.com/nelmio/NelmioSecurityBundle
0 commit comments