Skip to content

QuentinCurtet/NotificationBundle

 
 

Repository files navigation

NotificationBundle

Symfony2 notification bundle

Installation

Add dependencies in your composer.json file:

"require": {
    ...
    "jms/serializer-bundle":          "dev-master",
    "friendsofsymfony/rest-bundle":   "dev-master",
    "idci/notification-bundle":       "dev-master"
},

Install these new dependencies of your application:

$ php composer.phar update

Enable bundles in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        new IDCI\Bundle\NotificationBundle\IDCINotificationBundle(),
    );
}

Import the routing configuration:

# app/config/routing.yml

idci_notification_api:
    type:     rest
    resource: "@IDCINotificationBundle/Resources/config/routing.yml"
    prefix:   /api

Documentation

Read the Documentation

Tests

Install bundle dependencies:

$ php composer.phar update

To execute unit tests:

$ phpunit --coverage-text

About

Symfony2 notification bundle

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%