ZoneAccessNotificationService
final class ZoneAccessNotificationService (View source)
Emails a user when they gain or lose access to a zone.
This service handles email notifications when users are granted or revoked access to DNS zones, improving collaboration awareness and audit trails.
Methods
__construct(UserNotificationRecipientInterface $recipients, ConfigurationInterface $config, MailService $mailService, EmailTemplateService $emailTemplateService, DomainRepositoryInterface $domainRepository, UrlService $urlService, 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(UserNotificationRecipientInterface $recipients, ConfigurationInterface $config, MailService $mailService, EmailTemplateService $emailTemplateService, DomainRepositoryInterface $domainRepository, UrlService $urlService, 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