Symfony2 notification api client bundle
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 updateEnable 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:debugYou'll get this result:
...
da_api_client.api.notification container Da\ApiClientBundle\Http\Rest\RestApiClientBridge
...Install bundle dependencies:
$ php composer.phar updateTo execute unit tests:
$ phpunit --coverage-text