Permalink
Browse files

Merge pull request #150 from simonwelsh/patch-3

API CHANGE: Deprecate Director::set_dev_servers() and Director::set_test_servers(). Use _ss_environment.php for environment configuration.
  • Loading branch information...
2 parents 7d70fa7 + 7179f04 commit c10ebe04da51cb330e3a21f92e1b399796393232 @wilr wilr committed Jan 3, 2012
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;
}

0 comments on commit c10ebe0

Please sign in to comment.