-
-
Notifications
You must be signed in to change notification settings - Fork 462
Closed
Labels
Description
Problem Statement
Right now RequestFetcher checks for \PHP_SAPI === 'cli', which will always be true if the application is running under RoadRunner even though all the necessary server headers with request information exist.
Right now, the workaround is to instantiate an instance of RequestIntegration with a custom RequestFetcher, but would be nice to not have to do it.
Solution Brainstorm
Possibly replace the current implementation with
public function fetchRequest(): ?ServerRequestInterface
{
if (!isset($_SERVER['REQUEST_METHOD'])) {
return null;
}
return ServerRequest::fromGlobals();
}
but I'm not sure why \PHP_SAPI === 'cli' was added in the first place so this might cause other issues?
Thanks