/**
  * Handles the web request. The response will automatically be sent to the client.
  *
  * @return void
  * @author Robert Lemke <*****@*****.**>
  */
 public function handleRequest()
 {
     $request = $this->requestBuilder->build();
     $response = $this->objectFactory->create('F3\\FLOW3\\MVC\\Web\\Response');
     $this->dispatcher->dispatch($request, $response);
     $response->send();
 }
Example #2
0
 /**
  * Dispatch a transaction to the main dispatcher by building intermediate
  * request and responses.
  *
  * @param \F3\ExtJS\ExtDirect\Transaction $transaction
  * @return void
  */
 protected function dispatchTransaction(\F3\ExtJS\ExtDirect\Transaction $transaction)
 {
     $dispatchRequest = $this->buildDispatchRequest($transaction);
     $dispatchResponse = $this->objectManager->create('F3\\ExtJS\\ExtDirect\\Response');
     $this->dispatcher->dispatch($dispatchRequest, $dispatchResponse);
     return array('type' => 'rpc', 'tid' => $transaction->getTid(), 'action' => $transaction->getAction(), 'method' => $transaction->getMethod(), 'result' => $dispatchResponse->getResult(), 'success' => $dispatchResponse->getSuccess());
 }