Re: Re: Liveuser - can't create auth container instance
| From: | Jeroen Houben | Date: | Wed, 31 Aug 2005 10:57:37 +0000 |
| Subject: | Re: Re: Liveuser - can't create auth container instance | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20681@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Jeroen Houben wrote:Okay because the PEARAuth AuthContainer cannot be managed by Liveuser.this fails because the authFactory method tries to load a class called LiveUser_Admin_Auth_PEARAuth - which does not exist. Could somebody point me in the right direction?exactly .. you can only use the perm property in that case.
either make an instance of the perm admin code directly or use setAdminPermContainer() instead of setAdminContainers(). if you have autoInit enabled you need to disable it as well.Yes, I see. I'm slowly beginning to grasp the concepts :-) There are no users defined yet, I get an exception when runnig $lu_admin->getUsers(). Again, I feel an exception is not needed, simple returning an empty array makes more sense to me. It's like querying a database, returning 0 rows is by no means an exception. Or am I overlooking something? Jeroen