original_string: public function beforeDispatch(Event $event)
      {
          $request = $event->getData('request');
          $response = $event->getData('response');
          $event->setData('controller', $this->_getController($request, $response));
      }
code: public function beforeDispatch(Event $event)
      {
          $request = $event->getData('request');
          $response = $event->getData('response');
          $event->setData('controller', $this->_getController($request, $response));
      }
code_tokens: public function beforeDispatch ( Event $ event ) { $ request = $ event -> getData ( 'request' ) ; $ response = $ event -> getData ( 'response' ) ; $ event -> setData ( 'controller' , $ this -> _getController ( $ request , $ response ) ) ; }
docstring: Resolve the request parameters into a controller and attach the controller
  to the event object.
  
  @param \Cake\Event\Event $event The event instance.
  @return void
docstring_tokens: Resolve the request parameters into a controller and attach the controller to the event object .