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: Add a cwd argument to hotSwapPHPRuntime() #1304

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

adamziel
Copy link
Collaborator

To support Loopback Request, we need to decouple BasePHP from the request handler. This PR removes the implicit dependency from hotSwapPHPRuntime, where requestHandler.documentRoot was accessed, and replaces it with an explicit cwd argument. In the future, that argument will be removed and the PHP constructor will accept a class-level cwd property.

Testing instructions

Confirm the CI checks pass.

To support [Loopback Request](#1287),
we need to decouple BasePHP from the request handler. This PR removes
the implicit dependency from hotSwapPHPRuntime, where
`requestHandler.documentRoot` was accessed, and replaces it with an
explicit `cwd` argument. In the future, that argument will be removed
and the PHP constructor will accept a class-level `cwd` property.

 ## Testing instructions

Confirm the CI checks pass.
@adamziel adamziel force-pushed the decouple-rotating-php-runtime-from-request-handler branch from c914845 to 8f62b90 Compare April 23, 2024 12:54
@adamziel adamziel merged commit 92bae60 into trunk Apr 23, 2024
5 checks passed
@adamziel adamziel deleted the decouple-rotating-php-runtime-from-request-handler branch April 23, 2024 18:24
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