Skip to content

Add ability to custom insertion in Params#18

Merged
jmjoy merged 5 commits intojmjoy:masterfrom
DmitryHudrich:patch-1
Jul 15, 2025
Merged

Add ability to custom insertion in Params#18
jmjoy merged 5 commits intojmjoy:masterfrom
DmitryHudrich:patch-1

Conversation

@DmitryHudrich
Copy link
Contributor

This commit introduces a custom method for inserting parameters into PHP-FPM requests. This was necessary because the general methods for parameter insertion might not include required parameters, such as HTTP_HOST, which is crucial for WordPress to function properly. The custom approach ensures that all necessary parameters are provided for correct operation.

This commit introduces a custom method for inserting parameters into PHP-FPM requests. This was necessary because the general methods for parameter insertion might not include required parameters, such as HTTP_HOST, which is crucial for WordPress to function properly. The custom approach ensures that all necessary parameters are provided for correct operation.
@jmjoy
Copy link
Owner

jmjoy commented Jan 4, 2025

But Params implement DerefMut of HashMap, so you can use insert mehtod Inherited from HashMap.

@DmitryHudrich
Copy link
Contributor Author

Oh, sorry for my carelessness. insert works. But DerefMut requires a mutable variable. I think this is a bit inconsistent with the fact that the parameters are specified through a Builder.

@jmjoy
Copy link
Owner

jmjoy commented Jan 6, 2025

What's wrong with mutable variables?

@jmjoy jmjoy merged commit b8f162d into jmjoy:master Jul 15, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Jul 15, 2025
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.

2 participants