Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 964 Bytes

File metadata and controls

46 lines (34 loc) · 964 Bytes

Setting up the bundle

A: Install Ecentria API Events Bundle

Add the repository to your composer.json file

"repositories": [
    ...
    { "type": "vcs", "url": "https://github.com/ecentria/EcentriaAPIEventsBundle" }
]

Add via composer command

$ php composer.phar require ecentria/ecentria-APIEvents-bundle dev-master

Or Add via composer.json directly

"ecentria/ecentria-APIEvents-bundle": "dev-master"

B: Enable the bundle

Enable the bundle:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
         new Ecentria\Libraries\EcentriaRestBundle\EcentriaAPIEventsBundle(),
    );
}

C: Install Ecentria API Events Bundle

Specify serializer service in config.yml

    ecentria_api_events:
        domain_message_serializer: jms_serializer