/** * Constructor * * If a $uri is passed, the object will attempt to populate itself using * that information. * * @param string|Zend_Uri $uri * @return void * @throws Zend_Controller_Request_Exception when invalid URI passed */ public function __construct($uri = null) { $this->_initFakeSuperGlobals(); $this->_fixupFakeSuperGlobals($uri); try { parent::__construct($uri); } catch (Exception $e) { Mage::helper('turpentine/debug')->logError('Bad URI given to dummy request: ' . $uri); Mage::helper('turpentine/debug')->logBackTrace(); Mage::logException($e); if (Mage::helper('turpentine/esi')->getEsiDebugEnabled()) { throw $e; } } }
/** * Constructor * * If a $uri is passed, the object will attempt to populate itself using * that information. * * @param string|Zend_Uri $uri * @return void * @throws Zend_Controller_Request_Exception when invalid URI passed */ public function __construct($uri = null) { $this->_initFakeSuperGlobals(); $this->_fixupFakeSuperGlobals($uri); parent::__construct($uri); }