/** * Match provided request and if matched - return corresponding controller * * @param Mage_Core_Controller_Request_Http $request * @return Mage_Core_Controller_Front_Action|null */ public function match(Mage_Core_Controller_Request_Http $request) { //checking before even try to find out that current module //should use this router if (!$this->_beforeModuleMatch()) { return null; } $params = $this->_parseRequest($request); if (false == $this->_canProcess($params)) { return null; } $this->_app->loadDiConfiguration($this->_areaCode); return $this->_matchController($request, $params); }