joubjoub/notification-bundle

Provides notification for your Symfony2 application.

dev-master 2015-06-18 20:52 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:27:33 UTC


README

Provides a notification bundle for Symfony2

Installation

Install it via composer with:

composer require joubjoub/notification-bundle dev-master

You should create entities UserNotification, Notification, and implements the NotifiableInterface for your User entity.

Usage

And then, you should be able to add a notification with the service joubjoub.notification like this:

// $users can be an array of NotifiableInterface object, or a NotifiableInterface object
$this->get('joubjoub.notification')->addNotification($users, $notification);

## License This bundle is under MIT License.

Unit test

Unit tests will come soon.