Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated docs

  • Loading branch information...
commit 60837d8ec88269cc69351c181f0d3321aa565f43 1 parent 239061d
@lsmith77 lsmith77 authored
View
5 Resources/doc/1-setting_up_the_bundle.md
@@ -4,8 +4,9 @@ Step 1: Setting up the bundle
**Note:**
-> This bundle depends on the [JMSSerializerBundle](https://github.com/schmittjoh/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](https://github.com/schmittjoh/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.
View
6 Resources/doc/2-the-view-layer.md
@@ -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 @@ https://github.com/liip-forks/symfony-standard/blob/techtalk/app/config/config.y
### 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
Please sign in to comment.
Something went wrong with that request. Please try again.