This bundle integrates into your Symfony project opportus/object-mapper
, a library that allows copying state of objects to differently typed objects using extensible controls and mapping strategies.
Below is the installation guide specific to this Symfony bundle. For the complete guide, please refer to opportus/object-mapper
's homepage: https://github.com/opportus/object-mapper.
Open a command console, enter your project directory and execute:
$ composer require opportus/object-mapper-bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require opportus/object-mapper-bundle
Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Opportus\ObjectMapperBundle\OpportusObjectMapperBundle(),
);
// ...
}
// ...
}