feat: cli command to un-/register MailJet webhook url

This commit is contained in:
Björn Fromme
2026-04-29 10:36:04 +02:00
parent daf89f9189
commit a2bcedafc4
5 changed files with 349 additions and 1 deletions
+15
View File
@@ -1158,6 +1158,21 @@ Removes expired pending newsletter double opt-in requests.
- Scheduled cleanup removes all currently expired pending requests (`expires_at <= now`) as a safety net.
- Confirmed requests are converted into durable per-list newsletter consent records and then deleted.
#### app:mailjet:newsletter-webhook
```bash
php bin/console app:mailjet:newsletter-webhook register
php bin/console app:mailjet:newsletter-webhook remove 123
php bin/console app:mailjet:newsletter-webhook deactivate
```
Creates or deletes the Mailjet `unsub` callback for `POST /webhooks/mailjet/newsletter`.
- Uses `APP_BASE_URL` by default and appends the webhook path.
- Pass `--url` to target a different full webhook URL.
- `register` prints the API response payload so you can note the callback ID.
- `remove` and `deactivate` require the callback ID returned by Mailjet.
### 10.3 Setup Commands
#### app:crypto:generate-keys