An open API service indexing awesome lists of open source software.

https://github.com/softspring/notification-bundle


https://github.com/softspring/notification-bundle

symfony-bundle

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Notification Bundle

![Latest Stable](https://img.shields.io/packagist/v/softspring/notification-bundle?label=stable&style=flat-square)
![Latest Unstable](https://img.shields.io/packagist/v/softspring/notification-bundle?label=unstable&style=flat-square&include_prereleases)
![License](https://img.shields.io/packagist/l/softspring/notification-bundle?style=flat-square)
![PHP Version](https://img.shields.io/packagist/dependency-v/softspring/notification-bundle/php?style=flat-square)
![Downloads](https://img.shields.io/packagist/dt/softspring/notification-bundle?style=flat-square)
[![CI](https://img.shields.io/github/actions/workflow/status/softspring/notification-bundle/ci.yml?branch=5.4&style=flat-square&label=CI)](https://github.com/softspring/notification-bundle/actions/workflows/ci.yml)
![Coverage](https://raw.githubusercontent.com/softspring/notification-bundle/5.4/.github/badges/coverage.svg)

## Installation

### Configure Bundle

If you use flex, you should not need to do this. But if you don't or something goes wrong, you must add include
the bundle in config/bundles.php file:

['all' => true],
];

### Configure ORM

Create your Notification entity:

user;
}

/**
* @inheritdoc
*/
public function setUser(UserInterface $user): void
{
$this->user = $user;
}
}

Create config/packages/sfs_notification.yaml file with your entity configuration

sfs_notification:
notification_class: App\Entity\Notification