Chris Brown
fd35343f60
[v4] Fix ngrok.io proxy/forwarding detection
...
Fixes #1384
Since Valet 4 uses Ngrok v3, this change is needed to accommodate the change ngrok made:
> In ngrok v3 the `X-Original-Host` header was replaced with the more standard `X-Forwarded-Host` to better align with web standards.
> More Info: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host
Credit to @streamingsystems for doing the legwork.
Co-authored-by: streamingsystems <streamingsystems@users.noreply.github.com >
2023-04-24 21:48:04 -04:00
Matt Stauffer
831779cec0
Remove more docblocks
2023-01-11 11:40:32 -05:00
Matt Stauffer
4c2c4a1238
Drop unnecessary doc blocks ( #1339 )
...
* Drop unnecessary doc blocks
* Apply fixes from StyleCI
Co-authored-by: StyleCI Bot <bot@styleci.io >
2023-01-11 09:14:39 -05:00
Matt Stauffer
976339f898
Support isolated sites running PHP 7.4
2022-12-26 09:47:58 -05:00
Matt Stauffer
4c67413e7a
Allow null response from frontControllerPath
2022-12-22 13:26:02 -05:00
StyleCI Bot
a73be25a76
Apply fixes from StyleCI
2022-12-18 21:08:41 +00:00
Matt Stauffer
efa7937038
Update drivers location and loading
...
- Extract much of server.php into a `Server` class
- Move all but the Laravel and Basic drivers into a subfolder
- Load all but the Laravel and Basic drivers via glob
- Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers
2022-12-18 15:08:17 -06:00
Matt Stauffer
711e3dd2ba
Move all drivers to PSR autoload, and write tests
2022-12-02 21:15:15 -05:00