ZoneAccessNotificationService
class ZoneAccessNotificationService (View source)
Service for sending zone access change notifications
This service handles email notifications when users are granted or revoked access to DNS zones, improving collaboration awareness and audit trails.
Methods
__construct(PDO $db, ConfigurationManager $config, MailService $mailService, EmailTemplateService $emailTemplateService, ZoneRepositoryInterface $zoneRepository, LoggerInterface|null $logger = null)
No description
bool
notifyAccessGranted(int $zoneId, int $newOwnerId, int $grantedById)
Send notification when zone access is granted to a user
bool
notifyAccessRevoked(int $zoneId, int $removedOwnerId, int $revokedById)
Send notification when zone access is revoked from a user
Details
__construct(PDO $db, ConfigurationManager $config, MailService $mailService, EmailTemplateService $emailTemplateService, ZoneRepositoryInterface $zoneRepository, LoggerInterface|null $logger = null)
No description
bool
notifyAccessGranted(int $zoneId, int $newOwnerId, int $grantedById)
Send notification when zone access is granted to a user
bool
notifyAccessRevoked(int $zoneId, int $removedOwnerId, int $revokedById)
Send notification when zone access is revoked from a user