sonata-project/SonataMediaBundle — pull request #510 by loicolas (2014-03-17 11:16:41+00:00)
Title: Move serializer.xml loading

The usage of serializer.xml services can be not restrictive to REST API only.
In some cases it is usefull to serialize objects in an internal workflow, so you don't have to load FOSRestBundle nor NelmioApiDocBundle.

For example, in the Sonata commerce bundle, when you move a product from Basket to Order, each product items are serialized but not used in a REST interface.

The same modification can also be done in the following bundles:
- sonata-project\ecommerce\src\CustomerBundle\DependencyInjection\SonataCustomerExtension.php
- sonata-project\ecommerce\src\InvoiceBundle\DependencyInjection\SonataInvoiceExtension.php
- sonata-project\ecommerce\src\OrderBundle\DependencyInjection\SonataOrderExtension.php
- sonata-project\ecommerce\src\ProductBundle\DependencyInjection\SonataProductExtension.php
- sonata-project\news-bundle\DependencyInjection\SonataNewsExtension.php
- sonata-project\page-bundle\DependencyInjection\SonataPageExtension.php
- sonata-project\user-bundle\DependencyInjection\SonataUserExtension.php