Release 2.10 (#4549)

This commit is contained in:
Kevin Papst
2024-01-19 12:05:07 +01:00
committed by GitHub
parent afd60a67f6
commit 46739795ff
52 changed files with 348 additions and 292 deletions

View File

@@ -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)
{
}

View 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);
}
}