idci/notification-api-client-bundle

Symfony NotificationApiClientBundle

v4.0.1 2019-07-15 10:30 UTC

README

Symfony2 notification api client bundle

Installation

Add dependencies in your composer.json file:

"require": {
    ...
    "da/api-client-bundle": "dev-master",
    "idci/notification-api-client-bundle": "dev-master"
},

Install these new dependencies of your application:

$ php composer.phar update

Enable the bundle in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Da\ApiClientBundle\DaApiClientBundle(),
        new IDCI\Bundle\NotificationApiClientBundle\IDCINotificationApiClientBundle(),
    );
}

Import the bundle configuration:

# app/config/config.yml

imports:
    - { resource: @IDCINotificationApiClientBundle/Resources/config/config.yml }

To check if every thing seem to be ok, you can execute this command:

$ php app/console container:debug

You'll get this result:

...
da_api_client.api.notification    container Da\ApiClientBundle\Http\Rest\RestApiClientBridge
...

Documentation

Read the Documentation

Tests

Install bundle dependencies:

$ php composer.phar update

To execute unit tests:

$ phpunit --coverage-text