public function beforeDispatch(Event $event)
    {
        $request = $event->getData('request');
        $response = $event->getData('response');
        $event->setData('controller', $this->_getController($request, $response));
    }
public function beforeDispatch(Event $event)
    {
        $request = $event->getData('request');
        $response = $event->getData('response');
        $event->setData('controller', $this->_getController($request, $response));
    }
public function beforeDispatch ( Event $ event ) { $ request = $ event -> getData ( 'request' ) ; $ response = $ event -> getData ( 'response' ) ; $ event -> setData ( 'controller' , $ this -> _getController ( $ request , $ response ) ) ; }
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
Resolve the request parameters into a controller and attach the controller to the event object .