Merged [47074]: Added register and unregister as aliases to Authenticator.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60509 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 21:32:00 +00:00
parent 41ebffce4f
commit f2e8c234b3

View File

@ -59,6 +59,10 @@ abstract class Authenticator extends Object {
*/ */
public abstract static function get_name(); public abstract static function get_name();
public static function register($authenticator) {
self::register_authenticator($authenticator);
}
/** /**
* Register a new authenticator * Register a new authenticator
@ -91,6 +95,10 @@ abstract class Authenticator extends Object {
return true; return true;
} }
public static function unregister($authenticator) {
self::unregister_authenticator($authenticator);
}
/** /**
* Remove a previously registered authenticator * Remove a previously registered authenticator
* *