Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Raise visibility of Mailable prepareMailableForDelivery() #47031

Merged
merged 1 commit into from
May 11, 2023

Conversation

AhmedHaroon
Copy link
Contributor

This PR raises visibility of Mailable prepareMailableForDelivery() method to protected. Since the introduction of the new mailable syntax in #44462, overriding send() method in child classes is not as straightforward as before since prepareMailableForDelivery() has private visibility. Our use-case for overriding send() is to change the mailer configuration on-the-fly before sending the mail.

Copy link
Member

@nunomaduro nunomaduro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taylorotwell It is highly unlikely that this change will cause any issues, unless the user has already defined their own prepareMailableForDelivery method in a Mailable class that extends our own, with a different signature. Given this low probability, I do not consider this change to be breaking.

@nunomaduro nunomaduro requested a review from taylorotwell May 11, 2023 11:48
@taylorotwell taylorotwell merged commit 8e43c02 into laravel:10.x May 11, 2023
milwad-dev pushed a commit to milwad-dev/framework that referenced this pull request May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants