summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
authorxue <>2005-12-29 01:16:29 +0000
committerxue <>2005-12-29 01:16:29 +0000
commit7e0b0798997b197d57d09ef5e690afdb1e6a2712 (patch)
tree4b4b0901508713d49ddead72324ae60c8b56f1de /framework/Security
parentccdb91a35602377fe389c6c5b0945478929e0eca (diff)
Changed module init() method signature.
Diffstat (limited to 'framework/Security')
-rw-r--r--framework/Security/TAuthManager.php4
-rw-r--r--framework/Security/TUserManager.php4
2 files changed, 2 insertions, 6 deletions
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))