agent foundation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace MintyPHP\Service\Mail;
|
||||
|
||||
use MintyPHP\Repository\Mail\MailLogRepositoryInterface;
|
||||
use MintyPHP\Service\Settings\SettingGateway;
|
||||
use MintyPHP\Service\Settings\SettingsSmtpGateway;
|
||||
|
||||
class MailServicesFactory
|
||||
{
|
||||
@@ -12,7 +12,7 @@ class MailServicesFactory
|
||||
|
||||
public function __construct(
|
||||
private readonly MailRepositoryFactory $mailRepositoryFactory,
|
||||
private readonly SettingGateway $settingGateway
|
||||
private readonly SettingsSmtpGateway $settingsSmtpGateway
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class MailServicesFactory
|
||||
{
|
||||
return $this->mailService ??= new MailService(
|
||||
$this->createMailLogRepository(),
|
||||
$this->createSettingGateway()
|
||||
$this->createSettingsSmtpGateway()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ class MailServicesFactory
|
||||
return $this->mailLogService ??= new MailLogService($this->createMailLogRepository());
|
||||
}
|
||||
|
||||
private function createSettingGateway(): SettingGateway
|
||||
private function createSettingsSmtpGateway(): SettingsSmtpGateway
|
||||
{
|
||||
return $this->settingGateway;
|
||||
return $this->settingsSmtpGateway;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user