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

PHP: Remove addServerGlobalEntry() method, accept $_SERVER as php.run() property #1286

Merged
merged 4 commits into from
Apr 21, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Apr 20, 2024

Description

Removes the public php.addServerGlobalEntry() method in favor of a new $_SERVER property for PHPRequest. The provided $_SERVER entries only affected the next run() call so making them a part of the run() argument is more natural.

What problem does this solve?

This PR reduces the amount of state stored in the BasePHP class, simplifying the PHPProcessManager explorations.

Testing instructions

Confirm the unit and e2e tests pass.

@adamziel adamziel marked this pull request as ready for review April 21, 2024 20:00
@adamziel adamziel changed the title Draft: Replace the public addServerGlobalEntry API with a new PHPRequest prop called $_SERVER PHP: Remove addServerGlobalEntry() method, accept $_SERVER as php.run() property Apr 21, 2024
@adamziel adamziel merged commit 23c0fc6 into trunk Apr 21, 2024
5 checks passed
@adamziel adamziel deleted the self-request branch April 21, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant