PaulLab / easyadmin-notification-bundle
Symfony Easyadmin 通知的包
dev-master
2023-06-21 13:17 UTC
Requires
- php: >=8.1
- easycorp/easyadmin-bundle: ^4.6.6
- marc-mabe/php-enum: ^4.7
Requires (Dev)
- amphp/amp: ^2.6.2
- phpmd/phpmd: ^2.13.0
- phpro/grumphp: ^1.16.0
- phpstan/phpstan: ^1.10.20
- phpunit/phpunit: ^10.2.2
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.7.2
- vimeo/psalm: ^5.12.0
This package is auto-updated.
Last update: 2024-09-21 16:08:36 UTC
README
Symfony EasyAdmin 包的通知包
Doctrine 扩展配置
doctrine: dbal: types: notification_level: PaulLab\NotificationBundle\DBAL\Types\NotificationLevelType
Easy admin 示例配置
easy_admin: design: templates: layout: '@PaulLabNotification/layouts/layout.html.twig' entities: Notification: translation_domain: 'PaulLabNotification' class: PaulLab\NotificationBundle\Entity\Notification controller: PaulLab\NotificationBundle\Controller\NotificationController disabled_actions: ['edit', 'new'] list: batch_actions: ['delete', 'markRead'] fields: - { property: level, label: notification.level, template: '@PaulLabNotification/field/notification_level.html.twig' } - { property: source, label: notification.source } - { property: message, label: notification.message } - { property: send_at, label: notification.send_at } - { property: read_at, label: notification.read_at } sort: ['send_at', 'DESC'] filters: - { property: source, label: notification.source } - { property: read_at, label: notification.read_at, type: date } show: fields: - { property: level, label: notification.level, template: '@PaulLabNotification/field/notification_level.html.twig' } - { property: source, label: notification.source } - { property: message, label: notification.message } - { property: send_at, label: notification.send_at }