Skip to content

Latest commit

 

History

History
executable file
·
67 lines (40 loc) · 1.46 KB

advanced-configuration.rst

File metadata and controls

executable file
·
67 lines (40 loc) · 1.46 KB

MgiletNotificationBundle

A simple Symfony 3 bundle for user notifications

Advanced configuration

By default this bundle is configured to use Implementations of UserNotificationInterface as user and AppBundle\Entity\Notification as notification entity.

You can change this behavior by editing your config.yml file.

Default bundle configuration:

Default configuration:

# config.yml

mgilet_notification:
    notification_class: AppBundle\Entity\Notification

How to configure:

  • notification_class: the entity defining a notification (this class MUST extends the MappedSuperClass AbstractNotification )

Change the default configuration according to your existing class.

Example :

# config.yml

mgilet_notification:
    notification_class: AcmeBundle\Entity\MyNotification

Go further :

go further