1
0
Fork 0

Use X-REQUEST-ID for Error pages

This commit is contained in:
Philipp Holzer 2022-12-26 21:17:32 +01:00
commit 4f1bb0d274
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
55 changed files with 218 additions and 130 deletions

View file

@ -21,6 +21,7 @@
namespace Friendica\Capabilities;
use Friendica\Module\Special\HTTPException as ModuleHTTPException;
use Friendica\Network\HTTPException;
use Psr\Http\Message\ResponseInterface;
@ -30,11 +31,12 @@ use Psr\Http\Message\ResponseInterface;
interface ICanHandleRequests
{
/**
* @param array $request The $_REQUEST content (including content from the PHP input stream)
* @param ModuleHTTPException $httpException The special HTTPException Module in case of underlying errors
* @param array $request The $_REQUEST content (including content from the PHP input stream)
*
* @return ResponseInterface responding to the request handling
*
* @throws HTTPException\InternalServerErrorException
*/
public function run(array $request = []): ResponseInterface;
public function run(ModuleHTTPException $httpException, array $request = []): ResponseInterface;
}