示例#1
0
 public static function handleRequest($namespace, $singleJsonRequest)
 {
     $methodRaw = $singleJsonRequest['method'];
     list($namespace, $method) = self::getNamespaceAndMethod($namespace, $methodRaw);
     $singleJsonRequest['method'] = $method;
     $server = new JsonServerService($namespace, (bool) GeneralUtility::_GP('smd'));
     $request = new Request();
     $request->setOptions($singleJsonRequest);
     $server->handle($request);
 }