From 7e0b0798997b197d57d09ef5e690afdb1e6a2712 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 01:16:29 +0000 Subject: Changed module init() method signature. --- framework/Security/TAuthManager.php | 4 +--- framework/Security/TUserManager.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'framework/Security') diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index d0dc6718..327104cc 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -63,10 +63,8 @@ class TAuthManager extends TModule * @param TXmlElement configuration for this module, can be null * @throws TConfigurationException if user manager does not exist or is not TUserManager */ - public function init($config=null) + public function init($config) { - parent::init($config); - if($this->_userManager===null) throw new TConfigurationException('authmanager_usermanager_required'); $application=$this->getApplication(); diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index 7ecf357d..06b5d321 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -227,10 +227,8 @@ class TUserManager extends TModule * It loads user/role information from the module configuration. * @param TXmlElement module configuration */ - public function init($config=null) + public function init($config) { - parent::init($config); - if($this->_userFile!==null) { if(is_file($this->_userFile)) -- cgit v1.2.3