Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

updated docs

  • Loading branch information...
commit 60837d8ec88269cc69351c181f0d3321aa565f43 1 parent 239061d
@lsmith77 lsmith77 authored
5 Resources/doc/
@@ -4,8 +4,9 @@ Step 1: Setting up the bundle
-> This bundle depends on the [JMSSerializerBundle]( Please follow the instructions of the bundle to set it up.
-> If you install the bundle with composer then it will automatically require this bundle and others as dependencies.
+> This bundle recommends using [JMSSerializerBundle](
+> Please follow the instructions of the bundle to add it to your composer.json and how to set it up.
+> If you do not add a dependency to JMSSerializerBundle you will need to manually setup an alternative service and configure the Bundle to use it via the ``service`` section in the app config
Ultimately, the FOSRestBundle files should be downloaded to the
`vendor/bundles/FOS/RestBundle` directory.
6 Resources/doc/
@@ -4,7 +4,7 @@ Step 2: The view layer
The view layer makes it possible to write format agnostic controllers, by
placing a layer between the Controller and the generation of the final output
-via the templating or JMSSerializerBundle.
+via the templating or serializer.
In your controller action you will then need to create a ``View`` instance that
is then passed to the ``fos_rest.view_handler`` service for processing. The
@@ -105,7 +105,7 @@ The ``formats`` and ``templating_formats`` settings determine which formats are
respectively supported by the serializer and by the template layer. In other
words any format listed in ``templating_formats`` will require a template for
rendering using the ``templating`` service, while any format listed in
-``formats`` will use JMSSerializerBundle for rendering. For both settings a
+``formats`` will use the serializer for rendering. For both settings a
value of ``false`` means that the given format is disabled.
When using ``RouteRedirectView::create()`` the default behavior of forcing a
@@ -139,7 +139,7 @@
### Custom handler
-While many things should be possible via the JMSSerializerBundle in some cases
+While many things should be possible via the serializer in some cases
it might not be enough. For example you might need some custom logic to be
executed in the ``ViewHandler``. For these cases one might want to register a
custom handler for a specific format. The custom handler can either be

0 comments on commit 60837d8

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