Refactor getApiKey from SendgridHandler::sendMail

Created on 18 October 2024, about 2 months ago

Problem/Motivation

SendgridHandler::sendMail is 100 lines method. I'd need to use different sendgrid keys based on different contexts, so I need to provide my own sendgrid.mail_handler service and copypaste lots of code.
Would be great if there was a getApiKey() method, so I could only implement that one.

Proposed resolution

Create a getApiKey() method to extract that from sendMail.
Won't add it to the interface, as that would require a new major version because of the API addition.

Remaining tasks

MR.

User interface changes

None.

API changes

None (the method can be protected).

Data model changes

None.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024