]> git.mxchange.org Git - friendica.git/blobdiff - src/Capabilities/ICanHandleRequests.php
spelling: incoming
[friendica.git] / src / Capabilities / ICanHandleRequests.php
index 154eae69e5b65ae534fa3057bdf09b4839a8efcf..ae29aee9b3f5db0e2530270162d685592465c693 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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;
 }