Skip to content
Corex

SubscriptionService

Corex\Newsletter\Subscription\SubscriptionService · class · Add-ons layer

The subscription lifecycle: double opt-in subscribe → confirm → unsubscribe. Pure orchestration over an injected store + the Mailer seam + the token signer. Consent is required; tokens are signed and fail-closed; there is no email enumeration.

__construct(SubscriberStore $store, TokenSigner $signer, Mailer $mailer)

Section titled “__construct(SubscriberStore $store, TokenSigner $signer, Mailer $mailer)”
Section titled “subscribe(string $email, array $topics, bool $consent): bool”