mirror of
https://github.com/friendica/friendica
synced 2025-01-09 08:04:43 +00:00
work with PSR-7 Request in App::runFrontend()
This commit is contained in:
parent
11540a8bff
commit
a09e182238
1 changed files with 4 additions and 2 deletions
|
@ -177,7 +177,7 @@ class App
|
||||||
$this->container->create(ModuleHTTPException::class),
|
$this->container->create(ModuleHTTPException::class),
|
||||||
new HTTPInputData($request->getServerParams()),
|
new HTTPInputData($request->getServerParams()),
|
||||||
$start_time,
|
$start_time,
|
||||||
$request->getServerParams()
|
$request
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -549,8 +549,10 @@ class App
|
||||||
ModuleHTTPException $httpException,
|
ModuleHTTPException $httpException,
|
||||||
HTTPInputData $httpInput,
|
HTTPInputData $httpInput,
|
||||||
float $start_time,
|
float $start_time,
|
||||||
array $server
|
ServerRequestInterface $request
|
||||||
) {
|
) {
|
||||||
|
$server = $request->getServerParams();
|
||||||
|
|
||||||
$requeststring = ($server['REQUEST_METHOD'] ?? '') . ' ' . ($server['REQUEST_URI'] ?? '') . ' ' . ($server['SERVER_PROTOCOL'] ?? '');
|
$requeststring = ($server['REQUEST_METHOD'] ?? '') . ' ' . ($server['REQUEST_URI'] ?? '') . ' ' . ($server['SERVER_PROTOCOL'] ?? '');
|
||||||
$this->logger->debug('Request received', ['address' => $server['REMOTE_ADDR'] ?? '', 'request' => $requeststring, 'referer' => $server['HTTP_REFERER'] ?? '', 'user-agent' => $server['HTTP_USER_AGENT'] ?? '']);
|
$this->logger->debug('Request received', ['address' => $server['REMOTE_ADDR'] ?? '', 'request' => $requeststring, 'referer' => $server['HTTP_REFERER'] ?? '', 'user-agent' => $server['HTTP_USER_AGENT'] ?? '']);
|
||||||
$request_start = microtime(true);
|
$request_start = microtime(true);
|
||||||
|
|
Loading…
Reference in a new issue