/** * Construct the Request and Response objects. Allows you to overwrite or remove for high customization. * * @access public * @return void */ public function construct() { $this->attachObject('Request', function () { return Registry::factory('titon.http.Request'); }); $this->attachObject('Response', function () { return Registry::factory('titon.http.Response'); }); }
/** * Construct the Engine and Helper object(s). Allows you to overwrite or remove for high customization. * * @access public * @return void */ public function construct() { // Inherit the referenced Request and Response from the Controller $this->attachObject('Request', function () { return Registry::factory('titon.http.Request'); }); $this->attachObject('Response', function () { return Registry::factory('titon.http.Response'); }); // Attach an engine if it doesn't exist if (!$this->hasObject('Engine')) { $this->attachObject('Engine', function () { return Registry::factory('titon.modules.engines.titon.Renderer'); }); } // Attach helpers $this->attachObject('Html', function () { return Registry::factory('titon.modules.helpers.html.Html'); }); }