Пример #1
0
 /**
  * Handles the transferring of the request to the service.
  */
 public final function interact()
 {
     $reply = new \System\Collection\Vector();
     if ($this->hasServiceResult('\\System\\System\\Interaction\\Service\\InteractionRcv::interact')) {
         $serviceResult = $this->getServiceResult('\\System\\System\\Interaction\\Service\\InteractionRcv::interact');
         $reply = $serviceResult->reply;
     }
     $renderer = new \System\Output\Renderer\DataRenderer();
     $renderer->render(\System\System\Interaction\Interaction::encode($reply));
     $renderSurface = \System\Output\RenderSurface::getSurface('\\System\\Output\\GZIPBufferSurface');
     $renderSurface->setRenderer($renderer);
     $this->setRenderSurface($renderSurface);
 }