instances added god may help
This commit is contained in:
@@ -6,13 +6,17 @@ use MintyPHP\Repository\Mail\MailLogRepository;
|
||||
|
||||
class MailLogService
|
||||
{
|
||||
public static function listPaged(array $options): array
|
||||
public function __construct(private readonly MailLogRepository $mailLogRepository)
|
||||
{
|
||||
return MailLogRepository::listPaged($options);
|
||||
}
|
||||
|
||||
public static function find(int $id): ?array
|
||||
public function listPaged(array $options): array
|
||||
{
|
||||
return MailLogRepository::find($id);
|
||||
return $this->mailLogRepository->listPaged($options);
|
||||
}
|
||||
|
||||
public function find(int $id): ?array
|
||||
{
|
||||
return $this->mailLogRepository->find($id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user