17 use Psr\Http\Message\ResponseInterface;
18 use Psr\Http\Message\ServerRequestInterface;
35 'RemoteServer' => RemoteServer::class,
36 'MassActions' => MassActionHandler::class,
37 'Actions' => ActionHandler::class
44 public function dispatch(ServerRequestInterface $request): ResponseInterface
46 $callStack = json_decode($request->getBody()->getContents());
47 if (!is_array($callStack)) {
48 $callStack = [$callStack];
51 foreach ($callStack as $call) {
52 $className = $this->classMap[$call->action];
53 $method = $call->method;
54 $parameters = $call->data;
55 $instance = GeneralUtility::makeInstance($className);
69 $tmp = new \stdClass();
70 $tmp->action = $call->action;
71 $tmp->method = $call->method;
72 $tmp->result = $responseFromMethod;
73 $tmp->tid = $call->tid;
74 $tmp->type = $call->type;