/**
* Single entry point for all JSON admin requests.
*/
public function doAction()
{
$context = $this->context->get(null, 'backend');
$context->setLocale($this->locale->getBackend($context, 'default'));
$context->setView($this->viewcontainer->create($context, $this->uriBuilder, array(), $this->request));
$cntlPaths = $this->aimeos->get()->getCustomPaths('controller/extjs');
$controller = new \Aimeos\Controller\ExtJS\JsonRpc($context, $cntlPaths);
if (($content = file_get_contents('php://input')) === false) {
throw new \Exception('Unable to get request content');
}
return $controller->process($this->request->getArguments(), $content);
}