Permalink
Browse files

API CHANGE Removed BasicAuth::enable()/disable(), use protect_entire_…

…site()
  • Loading branch information...
1 parent 27fd3e5 commit 4216a091777400504d827a6c040a28d36bb500cf @chillu chillu committed Mar 9, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −1 docs/en/topics/configuration.md
  2. +0 −16 security/BasicAuth.php
@@ -35,7 +35,6 @@ incomplete - please add to it** *Try to keep it in alphabetical order too! :)*
| ---- | | ----------- |
| Authenticator::register_authenticator($authenticator);| | Enable an authentication method (for more details see [security](/topics/security)). |
| Authenticator::set_default_authenticator($authenticator); | | Modify tab-order on login-form.|
- | BasicAuth::disable() | | Disable basic authentication checking for dev sites (useful when testing credit card transaction post-backs etc) |
| BBCodeParser::disable_autolink_urls(); | | Disables plain hyperlinks from being turned into links when bbcode is parsed. |
| BlogEntry::allow_wysiwyg_editing(); | | Enable rich text editing for blog posts. |
| ContentNegotiator::set_encoding(string $encoding) | | The encoding charset to use - UTF-8 by default |
View
@@ -115,22 +115,6 @@ static function protect_entire_site($protect = true, $code = 'ADMIN', $message =
}
/**
- * @deprecated Use BasicAuth::protect_entire_site() instead.
- */
- static function enable() {
- Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site() instead.');
- return self::protect_entire_site();
- }
-
- /**
- * @deprecated Use BasicAuth::protect_entire_site(false) instead.
- */
- static function disable() {
- Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site(false) instead.');
- return self::protect_entire_site(false);
- }
-
- /**
* Call {@link BasicAuth::requireLogin()} if {@link BasicAuth::protect_entire_site()} has been called.
* This is a helper function used by {@link Controller::init()}.
*

0 comments on commit 4216a09

Please sign in to comment.