First Widget Bar + Number of notification unread. All is hardcoded

This commit is contained in:
Lucas Silva
2023-05-16 02:17:36 +02:00
parent 790c7f6724
commit b9e580af9a
7 changed files with 169 additions and 107 deletions

View File

@@ -25,27 +25,27 @@ class WidgetBar implements WidgetHandlerInterface
private Security $security;
private AccompanyingPeriodRepository $acpRepository;
//private AccompanyingPeriodRepository $acpRepository;
private WidgetBarDataFetcher $dataFetcher;
private NotificationRepository $notificationRepository;
//private NotificationRepository $notificationRepository;
private EntityManagerInterface $em;
//private EntityManagerInterface $em;
public function __construct(
AccompanyingPeriodRepository $accompanyingPeriodRepository,
// AccompanyingPeriodRepository $accompanyingPeriodRepository,
Security $security,
NotificationRepository $notificationRepository,
EntityManagerInterface $em,
// NotificationRepository $notificationRepository,
// EntityManagerInterface $em,
WidgetBarDataFetcher $dataFetcher
)
{
$this->acpRepository = $accompanyingPeriodRepository;
// $this->acpRepository = $accompanyingPeriodRepository;
$this->security = $security;
$this->notificationRepository = $notificationRepository;
$this->em = $em;
// $this->notificationRepository = $notificationRepository;
// $this->em = $em;
$this->dataFetcher = $dataFetcher;
}