How to

Generate entity and provider :

php bin/console make:admin:notification

Customize generated code as you want, then enable notification on config:

# config/packages/umbrella_admin.yaml umbrella_admin: notification: provider: App\Notification\AdminNotificationProvider poll_interval: 10

Finally, create your notification :

$notification = new AdminNotification(); $notification->title = 'Hello'; $em->persist($notification); $em->flush();

Example 1 : Create a notification with form

Will be sent to all if no recipient specified.

Example 2 : Start a counter using messenger bundle and notify progress

Messenger is a Symfony component. See Messenger: Sync & Queued Message Handling