Release 2.10 (#4549)
This commit is contained in:
@@ -18,7 +18,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
*/
|
||||
final class EmailSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(private KimaiMailer $mailer)
|
||||
public function __construct(private readonly KimaiMailer $mailer)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
28
src/EventSubscriber/NotificationsSubscriber.php
Normal file
28
src/EventSubscriber/NotificationsSubscriber.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\EventSubscriber;
|
||||
|
||||
use KevinPapst\TablerBundle\Event\NotificationEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
class NotificationsSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
NotificationEvent::class => ['onNotificationEvent', 100],
|
||||
];
|
||||
}
|
||||
|
||||
public function onNotificationEvent(NotificationEvent $event): void
|
||||
{
|
||||
$event->setShowBadgeTotal(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user