feat(core) : add CoreModule, user repository contract, notifier contract and enriched user contract

This commit is contained in:
Matthieu
2026-06-19 15:53:38 +02:00
parent 8865bf51e6
commit 6ca91cbd3b
6 changed files with 162 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace App\Module\Core\Domain\Repository;
use App\Shared\Domain\Contract\UserInterface;
use DateTimeInterface;
interface UserRepositoryInterface
{
/**
* @return list<UserInterface>
*/
public function findByRole(string $role): array;
/**
* @return list<UserInterface>
*/
public function findActiveEmployees(DateTimeInterface $date): array;
public function findOneByUsername(string $username): ?UserInterface;
}