Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

API CHANGE: Deprecate Director::set_dev_servers() and Director::set_t…

…est_servers() in favour of Director::set_environment_type() or an _ss_environment.php file.
  • Loading branch information...
commit 7179f04682ef291ff6aeb04dd05dff15f8cc1a03 1 parent 2ccda56
@simonwelsh simonwelsh authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 control/Director.php
View
4 control/Director.php
@@ -773,9 +773,11 @@ static function get_environment_type() {
* we recommend to set this mode via {@link Director::set_environment_type()}
* or an _ss_environment.php instead.
*
+ * @deprecated 3.0 Use Director::set_environment_type() or an _ss_environment.php instead.
* @param $servers array An array of HTTP_HOST values that should be treated as development environments.
*/
static function set_dev_servers($servers) {
+ Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
Director::$dev_servers = $servers;
}
@@ -787,9 +789,11 @@ static function set_dev_servers($servers) {
* we recommend to set this mode via {@link Director::set_environment_type()}
* or an _ss_environment.php instead.
*
+ * @deprecated 3.0 Use Director::set_environment_type() or an _ss_environment.php instead.
* @param $servers array An array of HTTP_HOST values that should be treated as test environments.
*/
static function set_test_servers($servers) {
+ Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
Director::$test_servers = $servers;
}
Please sign in to comment.
Something went wrong with that request. Please try again.