original_string: public function doDispatch(DispatchEvent $event)
      {
          $controller = $event->getContext();
          $action     = $event->getParam('action') . 'Action';
  
          $server   = $this->getServer();
          $request  = $server->getRequest()->withAddedAttributes($event->getParams());
          $response = $server->getResponse();
  
          $result = call_user_func_array([$controller, $action], [$request, $response]);
          $event->setResult($result);
      }
code: public function doDispatch(DispatchEvent $event)
      {
          $controller = $event->getContext();
          $action     = $event->getParam('action') . 'Action';
  
          $server   = $this->getServer();
          $request  = $server->getRequest()->withAddedAttributes($event->getParams());
          $response = $server->getResponse();
  
          $result = call_user_func_array([$controller, $action], [$request, $response]);
          $event->setResult($result);
      }
code_tokens: public function doDispatch ( DispatchEvent $ event ) { $ controller = $ event -> getContext ( ) ; $ action = $ event -> getParam ( 'action' ) . 'Action' ; $ server = $ this -> getServer ( ) ; $ request = $ server -> getRequest ( ) -> withAddedAttributes ( $ event -> getParams ( ) ) ; $ response = $ server -> getResponse ( ) ; $ result = call_user_func_array ( [ $ controller , $ action ] , [ $ request , $ response ] ) ; $ event -> setResult ( $ result ) ; }
docstring: Dispatch the controller.
  
  @param \Es\Dispatcher\DispatchEvent $event The event of dispatch
docstring_tokens: Dispatch the controller .