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: 2026-03-15 01:37:55 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.