Archive of the 'Step 1: Setting up the bundle' page which was unfortunately deleted from the Expo in mid 2020 and has now been republished by internet recovery program at Lolly Co.

Originally published 04 March 2015

Step 1: Setting up the bundle
A) Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

image of command console

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

B) Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

image of code to enable the bundle
C) Enable a Serializer

This bundle needs a serializer to work correctly. In most cases, you'll need to enable a serializer or install one. This bundle tries the following (in the given order) to determine the serializer to use:

  • The one you configured using (if you did).
  • The JMS serializer, if the JMSSerializerBundle is available (and registered).
  • The Symfony Serializer if it's enabled (or any service called serializer).

That was it!