feat(core) : move notification into core and expose notifier contract

This commit is contained in:
Matthieu
2026-06-19 16:25:03 +02:00
parent 0b4874e94d
commit f1a9b42930
10 changed files with 91 additions and 38 deletions
@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Controller;
use App\Repository\NotificationRepository;
use App\Module\Core\Infrastructure\Doctrine\DoctrineNotificationRepository;
use App\Shared\Domain\Contract\UserInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
@@ -14,7 +14,7 @@ use Symfony\Component\Security\Http\Attribute\IsGranted;
class NotificationUnreadCountController extends AbstractController
{
public function __construct(
private readonly NotificationRepository $notificationRepository,
private readonly DoctrineNotificationRepository $notificationRepository,
) {}
#[Route('/api/notifications/unread-count', name: 'notification_unread_count', methods: ['GET'], priority: 1)]