1: <?php
2: 3: 4: 5:
6: class Horde_Core_Factory_AuthSignup extends Horde_Core_Factory_Injector
7: {
8: public function create(Horde_Injector $injector)
9: {
10: $driver = empty($GLOBALS['conf']['signup']['driver'])
11: ? 'Null'
12: : $GLOBALS['conf']['signup']['driver'];
13:
14: $class = 'Horde_Core_Auth_Signup_' . Horde_String::ucfirst($driver);
15: if (class_exists($class)) {
16: return new $class($GLOBALS['conf']['signup']['params']);
17: }
18: throw new Horde_Exception($class . ' driver not found');
19: }
20:
21: }
22: