3 namespace wcf\system\endpoint
;
5 use CuyZ\Valinor\Mapper\MappingError
;
6 use Psr\Http\Message\ResponseInterface
;
7 use Psr\Http\Message\ServerRequestInterface
;
10 * Handles incoming API requests, relying on the `RequestType` attributes to
11 * register the endpoint. The endpoint can contain placeholders for parameters.
13 * @author Alexander Ebert
14 * @copyright 2001-2024 WoltLab GmbH
15 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
21 * Invokes the controller, passing in any placeholders from the endpoint in
22 * the `$variables` array.
24 * @param array<string, string> $variables
25 * @throws MappingError
27 public function __invoke(ServerRequestInterface
$request, array $variables): ResponseInterface
;