public function bootstrap() { $config = $this->getConfig(); $enabled = $config->get('cas-enabled'); if (in_array($enabled, array('all', 'staff'))) { require_once 'cas.php'; CasStaffAuthBackend::bootstrap($this->getConfig()); StaffAuthenticationBackend::register(new CasStaffAuthBackend()); } if (in_array($enabled, array('all', 'client'))) { require_once 'cas.php'; CasClientAuthBackend::bootstrap($this->getConfig()); UserAuthenticationBackend::register(new CasClientAuthBackend()); } }
public static function bootstrap($config) { self::$config = $config; }