From e8b60312037e54c34a06d6f57d7c21946cf3cd1f Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 28 Dec 2005 20:17:54 +0000 Subject: Modified the way to access application singleton. IService and IModule interfaces are also adjusted accordingly. --- framework/Web/THttpSession.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/THttpSession.php') diff --git a/framework/Web/THttpSession.php b/framework/Web/THttpSession.php index 0698d4d8..d7b1acfa 100644 --- a/framework/Web/THttpSession.php +++ b/framework/Web/THttpSession.php @@ -81,16 +81,16 @@ class THttpSession extends TModule * Initializes the module. * This method is required by IModule. * If AutoStart is true, the session will be started. - * @param TApplication prado application instance + * @param TXmlElement module configuration */ - public function init($application,$config) + public function init($config=null) { - parent::init($application,$config); + parent::init($config); if($this->_autoStart) session_start(); $this->_initialized=true; - $application->setSession($this); + $this->getApplication()->setSession($this); } /** -- cgit v1.2.3