Installation ============ Step 1: 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: .. code-block:: bash $ composer require jms/serializer-bundle "~0.13" This command requires you to have Composer installed globally, as explained in the `installation chapter <https://getcomposer.org/doc/00-intro.md>`_ of the Composer documentation. Step 2: Enable the Bundle ------------------------- Then, enable the bundle by adding the following line in the ``app/AppKernel.php`` file of your project: .. code-block:: php <?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new JMS\SerializerBundle\JMSSerializerBundle(), ); // ... } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cookbook | Folder | 0755 |
|
|
reference | Folder | 0755 |
|
|
configuration.rst | File | 8.91 KB | 0644 |
|
cookbook.rst | File | 140 B | 0644 |
|
event_system.rst | File | 148 B | 0644 |
|
handlers.rst | File | 140 B | 0644 |
|
index.rst | File | 1.82 KB | 0644 |
|
installation.rst | File | 1011 B | 0644 |
|
reference.rst | File | 143 B | 0644 |
|
usage.rst | File | 131 B | 0644 |
|