/** * Finds and instanciates a controller that matches the current request. * If no controller can be found, an instance of NotFoundControllerInterface is returned. * * @param Tx_Extbase_MVC_RequestInterface $request The request to dispatch * @return Tx_Extbase_MVC_Controller_ControllerInterface * @author Bastian Waidelich <*****@*****.**> * @author Robert Lemke <*****@*****.**> */ protected function resolveController(Tx_Extbase_MVC_RequestInterface $request) { $controllerObjectName = $request->getControllerObjectName(); $controller = $this->objectManager->get($controllerObjectName); if (!$controller instanceof Tx_Extbase_MVC_Controller_ControllerInterface) { throw new Tx_Extbase_MVC_Exception_InvalidController('Invalid controller "' . $request->getControllerObjectName() . '". The controller must implement the Tx_Extbase_MVC_Controller_ControllerInterface.', 1202921619); } return $controller; }
/** * Handles a request. The result output is returned by altering the given response. * * @param Tx_Extbase_MVC_RequestInterface $request The request object * @param Tx_Extbase_MVC_ResponseInterface $response The response, modified by this handler * @return void * @api */ public function processRequest(Tx_Extbase_MVC_RequestInterface $request, Tx_Extbase_MVC_ResponseInterface $response) { $this->widgetConfiguration = $request->getWidgetContext()->getWidgetConfiguration(); parent::processRequest($request, $response); }